MattyB Posted January 19, 2008 Share Posted January 19, 2008 i have this form http://www.chatchaos.org/appform.php but When you Fill it out only the email and the last box go to the email , Can anyone give me some advise on how to email all 8 boxes ? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted January 19, 2008 Share Posted January 19, 2008 would have to look at the php code that processes your form. off the top of my head; you script probably does not have the post variables declares or added to the mail() function. Quote Link to comment Share on other sites More sharing options...
MattyB Posted January 19, 2008 Author Share Posted January 19, 2008 <head> <title>Moderator Application</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> </head> <body> <h1><MARQUEE bgcolor="#6699FF" loop="100" scrollamount="10" width="150%">Moderation Application on ChatChaos, please fill in as much as you can.Any false input and The form will be VOID.</MARQUEE></h1> <form method="email" action="sendmail.php"> <EMBED src="http://www.chatchaos.org/danjpg.jpe" width="100%" height="110" align="center"> NickName:<input name="sub" type="text" <br /> Age:<input name="messages" type="text" <br /> Gender:<INPUT type="radio" name="option"> Male<INPUT type="radio" name="option"> Female <br /> Emails:<input name="email" type="text" <br /> How long you Been on ChatChaos:<input name="message" type="text" <br /> Why Do You Want To Become Moderator:<input name="message" type="text" <br /> Do you Think you will be good a this job:<input name="message" type="text" <br /> Do You Work on any other Chat-Sites:<input name="message" type="text" <br /> How Many Times a week do you think you will be on:<input name="message" type="text" /><br /> <input type="submit" /> </form><div id="footer"> All contents of this site © 2008-2009 ChatChaos <font face="Arial Unicode MS" size="4"><a href="http://chatchaos.org">Home</a> <a href="http://chatchaos.org/chat">Java-Chat</a></font></div> </body> </html> *********sendmail.php*************** <?php $email = $_REQUEST['email']; $message = $_REQUEST['message']; $option = $_REQUEST['option']; $sub = $_REQUEST['sub']; $Age = $_REQUEST['messages']; mail( "Staff@ChatChaos.Org", "Moderator Application", $message, "From: $email" ); header( "Location: http://ChatChaos.Org" ); ?> Quote Link to comment Share on other sites More sharing options...
AndyB Posted January 19, 2008 Share Posted January 19, 2008 The names of each input need to be different - you have 5 named 'message'. The action should be post, not email. Change $_REQUEST to $_POST. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted January 19, 2008 Share Posted January 19, 2008 All your input tags look something like this: <input name="message" type="text" Also, don't use the marquee tag. There is hardly a tag more annoying (well, maybe blink). Quote Link to comment Share on other sites More sharing options...
MattyB Posted January 19, 2008 Author Share Posted January 19, 2008 ok i Dont understand this Php Stuff lol But This is What i have now ??? <EMBED src="http://www.chatchaos.org/danjpg.jpe" width="100%" height="110" align="center"> <form method="post" action="send.php"> <table><tr><td> Nickname: <INPUT NAME="Nickname" TYPE="text" SIZE=20 MAXLENGTH=20><BR> Gender: <INPUT NAME="Gender" TYPE="checkbox" VALUE="Male">Male<INPUT NAME="Age" TYPE="checkbox" VALUE="Female">Female<BR> Age: <INPUT NAME="Age" TYPE="text" SIZE=3 MAXLENGTH=3><BR> email: <INPUT NAME="email" TYPE="text" SIZE=20 MAXLENGTH=50><BR> How Long You Been on ChatChaos : <INPUT NAME="How Long You Been on ChatChaos" TYPE="text" SIZE=20 MAXLENGTH=50><BR> Do you Think you will be good a this job: <INPUT NAME="Do you Think you will be good a this job" TYPE="text" SIZE=20 MAXLENGTH=50><BR> Do You Work on any other Chat-Sites: <INPUT NAME="Do You Work on any other Chat-Sites" TYPE="text" SIZE=20 MAXLENGTH=50><BR> How Many Times a week do you think you will be on: <INPUT NAME="How Many Times a week do you think you will be on" TYPE="text" SIZE=20 MAXLENGTH=50><BR> </td></tr> <tr><td align=center> <INPUT TYPE="submit" value="submit" style="color: #ffffff; background-color: #000000"> </td></tr></table> </FORM> *******SendMail.php********* <?php $Nickname = $_POST['Nickname']; $Gender = $_POST['Gender']; $email = $_POST['email']; $How Long You Been on ChatChaos = $_POST['How Long You Been on ChatChaos']; mail( "Staff@ChatChaos.Org", "Moderator Application", $message, "From: $email" ); header( "Location: http://ChatChaos.Org" ); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.