Hi there...
My php script requests data from the form:-
$name = $_REQUEST['name'] ;
$from = $_REQUEST['email'] ;
And then when I try to process the validation with:-
if($name == '') {print "You have not entered your name, please go back and try again.";}
else {
if($from == '') {print "You have not entered your email, please go back and try again.";}
else {
$send = mail($to, $subject, $body, $headers);
}
}
It fails as even when I enter data I get the error message regardless..
Pls advise..