RE: Transfering Php code?
hey chill,
<?php>
$a = $_POST['field1'];
$b = $_POST['field2'];
(...)
elseif ($a = 0 && $b = 0) {
echo "Please insert at least one value in the form. You'll be transfered to it again in 5 seconds" };
<?>
is not nice...
ok
use it like this
if (isset($_POST['field1']) AND isset($_POST['field2']) AND !empty($_POST['field1']) AND !empty($_POST['field2']))
{
echo "ok, form is ok, let's go on!";
}
else
{
echo "Not all fields are ok, bla die bla";
}
|