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?
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)