this post is a continuation from post:
I am trying to make my form more secure. Preventing robots and making users fill in all fields. I used a client side JavaScript; but i kept getting empty fields. After some research I found that a server side php script would be better.
This is what was suggested:
This is the link to the test site :
I tried modifying the code above but i get an error in line 5; as you can see if you test the form. See my modification below.
Artist/Designer
I am trying to make my form more secure. Preventing robots and making users fill in all fields. I used a client side JavaScript; but i kept getting empty fields. After some research I found that a server side php script would be better.
This is what was suggested:
Code:
<?PHP
if(!isset($_POST['fieldnamex'])||empty($_POST['fieldnamex'])){
echo "This field is not correct...."
return;
...
}
else{
include("formail.php");
}
?>
This is the link to the test site :
I tried modifying the code above but i get an error in line 5; as you can see if you test the form. See my modification below.
Code:
<?PHP
if(!isset($_POST['Full_Name'])||empty($_POST['Full_Name'])){
echo "This field is not correct...."
return;
...
}
if(!isset($_POST['Email'])||empty($_POST['Email'])){
echo "This field is not correct...."
return;
...
}
if(!isset($_POST['Comments_Questions'])||empty($_POST['Comments_Questions'])){
echo "This field is not correct...."
return;
...
}
else{
include("formmail.php");
}
?>
Artist/Designer