Problem accessing $_POST data
Posted: Wed Mar 25, 2009 4:09 pm
Ok, bizzare little issue (at least to me)...
I'm writing a script to let users change their passwords. New passwords are submitted via post.
gives the following:
Array ( [$newPassword] => fakepassword [$newPassword2] => fakepassword )
yet
on the following line echos not a thing. also tried
This strikes me as odd, because I'm doing the exact same thing a few lines up with $_GET and it works fine. Also, extract() works on the get but not the post. This is really baffling to me. Any help is much appreciated. 
I'm writing a script to let users change their passwords. New passwords are submitted via post.
Code: Select all
print_r($_POST]);Array ( [$newPassword] => fakepassword [$newPassword2] => fakepassword )
yet
Code: Select all
echo '<br />'.$_POST[newPassword];Code: Select all
echo '<br />'.$_POST['newPassword'];