Log In · Register

 
E-mail forms, how do I......., prevent people from sending a blank form
miiszxclassiic
post 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?
 
 
Start new topic
Replies
miiszxclassiic
post 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>


 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: