Re: passing variables values using POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 u can use hidden variables.so that u can get that variable value in POST .

Sudhakar <finals27@xxxxxxxxx> wrote:          i am presently passing the value of a variable to a php file using 
GET after data has been inserted to the database.

ex=

$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.



                           



   " There are many languages in the world, but a SMILE speaks them all. Keep Smiling! "
.......Madhu


       
---------------------------------
 Meet people who discuss and share your passions.  Join them now.

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux