EDIT: I found why it did not work before. I typed something wrong. Nevermind.
Hi. I want to set up a mail system to send users account disires to my email so I can manually create the account on my game. I tried figuring this one out on my own, but ended up crewing it up.
Here is the Email.php. I want to change it so that the following are changed. There is not a subjust box. The subject sent to me will automaticlly "be account stuff". As for the message.. I dont want users to send me a whole message, I just want that to be their disired password for the game. So message textbox changing to password box with the stuff that keeps the password blocked while typing it. Just like in any password creating situation. As you can see a something in this code creates a button to submit the information. I don't want that button. I want that button to be an image instead and still submit the information as normally.
Hi. I want to set up a mail system to send users account disires to my email so I can manually create the account on my game. I tried figuring this one out on my own, but ended up crewing it up.
Here is the Email.php. I want to change it so that the following are changed. There is not a subjust box. The subject sent to me will automaticlly "be account stuff". As for the message.. I dont want users to send me a whole message, I just want that to be their disired password for the game. So message textbox changing to password box with the stuff that keeps the password blocked while typing it. Just like in any password creating situation. As you can see a something in this code creates a button to submit the information. I don't want that button. I want that button to be an image instead and still submit the information as normally.
| Code: |
| <div id="content1"><br>
<?php echo "You can email us for anything to do with the guild. That includes questions, concerns, ect."; function spamcheck($field) { //eregi() performs a case insensitive regular expression match if(eregi("to:",$field) || eregi("cc:",$field)) { return TRUE; } else { return FALSE; } }//if "email" is filled out, send email if (isset($_REQUEST['email'])) { //check if the email address is invalid $mailcheck = spamcheck($_REQUEST['email']); if ($mailcheck==TRUE) { echo "Invalid input"; } else { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail("sparda@spardaslayer.frih.net", "Subject: $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } } else //if "email" is not filled out, display the form { echo "<form method='post' action='mailform.php'> Your Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?></body> </div> |
