RE: [PHP] parsing variables through webpages

2002-10-07 Thread David Freeman
> I send hidden variables from a form to a php. In the php > I have the following code to convert the global vars sent: > > If (isset($_GET['foo'])) > $foo = $_GET['foo'] > else > $foo = 0; > > But this only works using the "GET" method! If you're sending the

Re: [PHP] parsing variables through webpages

2002-10-07 Thread Marco Tabini
You can use $_POST in a similar fashion to retrieve values from form that have been posted with the POST method. Also, you can use $_REQUEST to catch both at the same time. In this case, you may have a problem if the same variable is passed through both GET and POST, in that one will override th

[PHP] parsing variables through webpages

2002-10-07 Thread Edgard Berendsen
I send hidden variables from a form to a php. In the php I have the following code to convert the global vars sent: If (isset($_GET['foo'])) $foo = $_GET['foo'] else $foo = 0; But this only works using the "GET" method! Thanks for your answer. -- PHP General Mailing