Can't retrieve variablesa
Trying to get my parameters passed from a form an a previous page into an action handler. I can see my data with var_dump($_POST) but this code returns all blank.
print ($_GET["date1"] . "|<BR>");
One of us is confused. Why do you assign value from $_GET and then var_dump() $_POST?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
var_dump() $_POST was just a test to display the post data. The _Get returns null
If the data is in $_POST, it won't be in $_GET.
Originally Posted by eforce
just replace all your $DatePosted=$_GET["date1"]; with $DatePosted=$_POST["date1"];
Beautiful....that worked. Thank you. This is my 2nd day in PHP and am writing website to read and add to a mysql db.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)