View Single Post
  #1 (permalink)  
Old Mar 16th, 2008, 23:26
sudhakararaog sudhakararaog is offline
Junior Member
Join Date: Dec 2007
Location: auckland
Age: 33
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
passing variables values using POST

i am presently passing the value of a variable to a php file using GET after data has been inserted to the database.

ex=

PHP: Select all

$firstname $_POST["firstname"];

if(!
$sqlconnection)
{
echo 
"error message";
}
else
{
header("Location: thankyou.php?firstnameis=$firstname"); 

how can i send the value of $firstname using POST instead of GET as the value is presently appearing in the address bar. ideally i would like using POST.

NOTE = please suggest techniques that does NOT involve javascript in order to pass $firstname using POST method, as i have done the entire validations using php and i have assumed that user has javascript turned off.

please advice.

thanks.

Last edited by CloudedVision; Mar 17th, 2008 at 01:50. Reason: PHP tags, please
Reply With Quote