Hi,
When i use the following in my script
if(isset($_POST["submit"])) { // If the form submitted.
$name = isset($_POST["name"]) ? $_POST["name"] : "";
$phone = isset($_POST["phone"]) ? $_POST["phone"] : "";
$country = isset($_POST["country"]) ? $_POST["country"] : "";
echo $name;
}
[code=php]
nothing is displayed when i use this, but when i use the following lines,
[code=php]
while (list($name, $value ) = each($HTTP_POST_VARS)) {
$$name = $value
echo $$name
}
this will display the variables, i am using this for error checking on a form. so when the forms first loads up the tests will fail, anybody got any advice?
many thanks