Jump to content

Novar

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Novar's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Awesome now i how do i make it so when they fill in the correct number it will email. How would i verify this in the mail.php?
  2. This deals with both html/php but anyways I have forms.. Forms that are easy to be spammed http://novar.82ndid.com/index2.html ex so far How would i go about adding in a security so the user needs to type in a random generated number to go to the next page which is mail.php -> then goes to thanks.html It would deal with both index2.html and mail.php I need alot of help, most sites dont help me I attempt to find. Here is both my code for index2.html and mail.php Could someone tweak it so it would or post how ? [code] <title>82nd Infantry Division Recruitment Application</title> <form enctype="multipart/form-data" method="POST" action="http://www.novar.82ndid.com/mail.php"> <img src="image.jpg" /> <br> <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forms with an asterisk * are required!</b> <table cellspacing="10" cellpadding="10" border="0"> <tr> <td valign="top"> <b>Name:*</b> </td> <td valign="top"> <input type="text" name="name" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Email Address:*</b> </td> <td valign="top"> <input type="text" name="email" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Age:*</b> </td> <td valign="top"> <input type="text" name="age" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Where are you from?*</b> </td> <td valign="top"> <input type="text" name="location" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Game you are applying for*</b> </td> <td valign="top"> <input type="text" name="game" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>In-game specialization?</b> </td> <td valign="top"> <input type="text" name="specialization" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Member Recommendation? If yes, who?.*</b> </td> <td valign="top"> <input type="text" name="recommendation" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Xfire (Download it at <A HREF="http://www.xfire.com">XFire.com</A>)*</b> </td> <td valign="top"> <input type="text" name="xfire" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>AIM/MSN S/N "Specify which client"*</b> </td> <td valign="top"> <input type="text" name="aim" size="40" value=""> </td> </tr><tr> <td valign="top"> <b>Internet Speed</b> </td> <td valign="top"> <input type="text" name="internet" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Past clans/guilds</b> </td> <td valign="top"> <input type="text" name="pastclans" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Can you donate?*</b> </td> <td valign="top"> <input type="text" name="donate" size="40" value=""> </td> </tr> <tr> <td valign="top"> <b>Comments</b> </td> <td valign="top"> <TEXTAREA Name="comments" rows="4" cols="30"></TEXTAREA> </td> </tr> <tr> <td valign="top"> <b>Do you accept the code of conduct?<A HREF="http://www.novar.82ndid.com/coc.html" TARGET="_blank"><br>View it here</a>*opens new window**</b> </td> <td valign="top"> <TEXTAREA Name="coc" cols="30"></TEXTAREA> </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value=" Submit Form "> </td> </tr> </table> </form> &copy 2006 By Novar <A HREF="http://www.novar.82ndid.com">novar.82ndid.com</a>[/code] [code]<? $mailto = 'jlluitj@gmail.com' ; $subject = "RCT APP $game $name $age CoC=$coc" ; $formurl = "http://www.novar.82ndid.com/index2.html" ; $errorurl = "http://www.novar.82ndid.com/error.html" ; $thankyouurl = "http://www.novar.82ndid.com/thanks.html" ; $uself = 0; // -------------------- END OF CONFIGURABLE SECTION --------------- $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ; $name = $_POST['name'] ; $email = $_POST['email'] ; $age = $_POST['age'] ; $location = $_POST['location'] ; $game = $_POST['game'] ; $specialization = $_POST['specialization'] ; $recommendation = $_POST['recommendation'] ; $xfire = $_POST['xfire'] ; $aim = $_POST['aim'] ; $internet = $_POST['internet'] ; $pastclans = $_POST['pastclans'] ; $donate = $_POST['donate'] ; $comments = $_POST['comments'] ; $coc = $_POST['coc'] ; $http_referrer = getenv( "HTTP_REFERER" ); if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; } if (empty($name) || empty($email) || empty($age) ||empty ($location) ||empty ($game) ||empty ($recommendation) ||empty ($xfire) ||empty ($aim) ||empty ($donate) ||empty ($coc)) {   header( "Location: $errorurl" );   exit ; } if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $age ) || ereg( "[\r\n]", $email ) || ereg( "[\r\n]", $location ) || ereg( "[\r\n]", $game ) || ereg( "[\r\n]", $recommendation ) || ereg( "[\r\n]", $xfire ) || ereg( "[\r\n]", $aim ) || ereg( "[\r\n]", $donate ) || ereg( "[\r\n]", $coc ) ) { header( "Location: $errorurl" ); exit ; } if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); } $messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n" . "Name of $name: $name\n" . "Email of $name: $email\n" . "Age of $name: $age\n" . "Location of $name: $location\n" . "Game of $name: $game\n" . "Specialization of $name: $specialization\n" . "Recommendation of $name: $recommendation\n" . "Xfire of $name: $xfire\n" . "AIM of $name: $aim\n" . "Internet of $name: $internet\n" . "Past Clans of $name: $pastclans\n" . "Donate? of $name: $donate\n" . "CoC of $name: $coc\n" . "------------------------- COMMENTS -------------------------\n\n" . $comments . "\n\n------------------------------------------------------------\n" ; mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: mail.php" ); header( "Location: $thankyouurl" ); exit ; ?> [/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.