I have a question that I cant solve at this moment. I have and URL like this: https://www.example.com/schedule/2020-02-26 i put the date on the URL with the next function: In this example $datevar is equal to “2020-02-26” My question is, How can I show the $datevar in my blade? Im trying with {{$datevar}} but I get an error. To put
Tag: get
Transform a average php code to OOP (set_get) [closed]
I have this code I want to Transform to OOP (Set-Get) what the code do is to take some numbers and find the average. function average($array) { foreach ($array as $item) { $total += $…
Why doesn’t this get function receive the variable car?
*quick_searches.php This code items that similar to a search done on a previous page. Then is supposed to save the specific brand listed to car. test.php This section of code is supposed to get car = ‘.$row[‘brand’].’ from quick_searches.php and display it. Answer So your URL has spaces around the parameter values – these have been URL Encoded to %20.
Why you shouldn’t be using GET request? 3 options [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question We covered all these POST and GET requests topics in college but those three are still in my mind. I was
Is there a way to differentiate between a page refresh and pushing a submit button?
I have a form that, when submitted with a button, adds an item to a SQL database. However, the problem is that if I refresh the page after submitting, it will add another identical item to this database. Is there any way to tell when a user is pushing a button and when they are just refreshing the page? I
Submit redirect to current url with different “GET” variables
I’m a have a form in a file called SignUpForm.php, when it’s submitted, the page is redirected to the url http://localhost/MySite/Includes/SignUp.php?step=1, and in the file SignUp.php I have a 3 …
PHP cURL GET Request to REST API not returning anything
I’m trying to use the UMLS Search REST API. I successfully retrieved the TGT and The ST. However, when trying to do a search as mentioned in the documentations, I got no response at all. Here’s my …
PHP deleting record without passing id with $_GET
i’d like to know if there is a method to delete a record in php without passing it via $_GET, maybe with $_POST or other methods. I was using this code in the read.php page and <table class="table …
Rewrite URL with parameters passed through PHP
So I have my PHP page page.php with the parameter id for example. Everything works as expected when I visit page.php?id=1 What I try to do now basically is, reach the site when the user visits …
PHP/Postman – How to populate the $Get
I am trying to do a Get request with Postman to a PHP script. But it doesn’t seem to populate the $_GET array? Why is this happening? http://localhost/download.php/game <?php $config = (object) ['…