E-mail forms, how do I......., prevent people from sending a blank form |
E-mail forms, how do I......., prevent people from sending a blank form |
Jul 29 2007, 12:50 AM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 50 Joined: Jul 2007 Member No: 541,260 |
Ok so I'm using an e-mail form on my site and someone keeps sending a blank form and when i get it in my e-mail it shows no ip address.
How can i make it so the required fields have to be filled in order for the form to be submitted. Is there a code? |
|
|
|
![]() |
Jul 29 2007, 01:28 AM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 50 Joined: Jul 2007 Member No: 541,260 |
Sorry I didn't know where to post it.
But this is what I'm using. It sends fine and goes straight to my e-mail but someone keeps sending blank forms and I want to make it so that the form wont be sent without the name and e-mail address being submitted. Here is the form: CODE <INPUT TYPE="hidden" NAME="to" VALUE="me@e-mail.com"> <INPUT TYPE="hidden" NAME="form" VALUE="www.mysite.com"> <INPUT TYPE="hidden" NAME="admin" VALUE="me@e-mail.com"> <INPUT TYPE="hidden" NAME="language" VALUE="en"> <p> <form action="http://www.hostmonster.com/monstermail" enctype="multipart/form-data" method="POST"> <b>Name</b>: <br> <input type="text" name="Name"><br> <b>Email</b>: <br> <input type="text" name="mailfrom"><br> <b>Site Url</b>: <br> <input type="text" name="Site Url:"><br> <b>Message</b>:<br> <TEXTAREA NAME="Message:" ROWS="6" COLS="32" > </TEXTAREA> <br> <input type="hidden" name="sendtoemail" value="me@e-mail.com"><br> <input type="hidden" name="redirect" value="http://www.mysite.com/thanks.php" target="main"> <input type="hidden" name="subject" value="Contact"> <input type="submit" value="Send"> </form> |
|
|
|
miiszxclassiic E-mail forms, how do I....... Jul 29 2007, 12:50 AM
The Markster Could you please show us your whole PHP script? (I... Jul 29 2007, 01:19 AM
The Markster Hmm, is there an actual PHP script that processes ... Jul 29 2007, 01:33 AM
miiszxclassiic Hmm no.. I got it off a script in my cpanel Jul 29 2007, 01:36 AM
miiszxclassiic do you suggest that i try using a php script? Jul 29 2007, 01:37 AM
The Markster QUOTE(miiszxclassiic @ Jul 28 2007, 11:37... Jul 29 2007, 02:04 AM
miiszxclassiic okay. Where can I find the easiest to use php e-ma... Jul 29 2007, 12:47 PM
Alvin Maybe going to the following sites may help:
http:... Jul 29 2007, 01:00 PM![]() ![]() |