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 |
![]()
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? |
|
|
*The Markster* |
![]()
Post
#2
|
Guest ![]() |
Could you please show us your whole PHP script? (I'm assuming it's in PHP.)
Btw, shouldn't this go in the Designers' Cubicle? ![]() |
|
|
![]()
Post
#3
|
|
![]() 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> |
|
|
*The Markster* |
![]()
Post
#4
|
Guest ![]() |
Hmm, is there an actual PHP script that processes the email? Or are you using one of those email forms from other sites?
|
|
|
![]()
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 50 Joined: Jul 2007 Member No: 541,260 ![]() |
Hmm no.. I got it off a script in my cpanel
![]() |
|
|
![]()
Post
#6
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 50 Joined: Jul 2007 Member No: 541,260 ![]() |
do you suggest that i try using a php script?
|
|
|
*The Markster* |
![]()
Post
#7
|
Guest ![]() |
|
|
|
![]()
Post
#8
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 50 Joined: Jul 2007 Member No: 541,260 ![]() |
okay. Where can I find the easiest to use php e-mail form
|
|
|
![]()
Post
#9
|
|
![]() ;) ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,573 Joined: Feb 2005 Member No: 99,124 ![]() |
Maybe going to the following sites may help:
http://www.ibdhost.com/contact/ http://www.free-php.net/index.php?search=contact+form |
|
|
![]() ![]() |