Click to See Complete Forum and Search --> : quick question about a page on php.net


bsmbahamas
01-28-2008, 01:23 PM
Is example #2 on the following page saying that is should not rely
on using echo $variable to access the data posted via a form,
but should preferably be using:

echo $_GET['variable'];
echo $_POST['variable'];

or

echo $_REQUEST['variable'];

http://bs.php.net/manual/en/language.variables.external.php

by the way when should i use get/post in the form, what the
reason for deciding to use one or the other, i normally use post.

thanks for this clearing it up.

jasonahoule
01-28-2008, 01:32 PM
Post values will be sent in the header of the request. Get values will be passed in the URL.