If one of the fields is not filled in I want a message to come up and say "all fields must be filled in" when the button is clicked and a field is NULL.
Any idea what code i would put in here for that to happen?
<form method='post' action='email1.php?host=$host1&script=$script1'>
Enter Your e-mail address:<input type='text' name='mytext1'>
Enter Your Friends e-mail address:<input type='text' name='mytext'>
<INPUT type='submit' name='mybutton' value='Click me!'>";
I'm thinking:
if 'mytext1' or 'mytext' =NULL then message(fill in all)
Not too sure where this would go and obviously the code above is just a guideline