MOWPHOENIX Posted January 26, 2009 Share Posted January 26, 2009 Hello, I need help to find the cause of the answer fields not showing up after this clan recruitment form has been submitted. The only thing that shows up after the form has been filled out is the questions.. Everything else works great . Been pulling out my hair trying to find the cause. Hope someone can see what I have not been able to. <html> <body> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> <tr> <td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Recruitement Form</b></span></td> </tr> <tr> <td class="$getbgrow" align="center"> <p align="left"><br /> </p> <p class="style31" align="left"><b><span class="style37">RECRUITMENT FORM</span></b><br> <br> <strong>Welcome soldier! you are intrested in joining our clan then please fill out<br> this application form and submit it, we will get back to you as soon as<br> possible and in the meantime you can check out the forums.<br><font color="#FF0000">This form does not guarentee Recruitment!<br></font><br> Thank you. </strong> </p> <span class="style31"><left> <br><br></left><left></left><left></left><left></left><left></left><left></left><left></left></span><span class="style32"><left></left></span><span class="style33"><left></left><left></left></span><left><form action="http://yourname.com/forums/modules/apply.php" method="post" name="Application" class="style33"> <div align="left>" class="style34"> <p align="left">Real Name: <input name="RealName" type="text" value="" size="15"> </p> <p align="left">Gaming Name: <input name="GamerName" type="text" size="15"> </p> <p align="left">Age: <input name="Age" type="text" size="2"> </p> <p align="left">Location: <input name="Location" type="text" size="15"> </p> <p align="left">Email Address: <input name="EmailAddress" type="text" size="30"> </p> <p align="left">Hours spent online per week: <input name="Hours" type="text" size="15"> <br> <br> If you have been in a clan before, please list all of the<br> ones you were in and the reason why you left them:<br> <textarea name="Clans" cols="50" rows="3" textarea="textarea"></textarea> <br> <br> Will you be able to attend practices and matches when scheduled?: <select name="Practices"> <option selected>------------------</option> <option>Yes</option> <option>I'll do my best to be there</option> <option>Maybe not</option> <option>No</option> </select> <br> <br> Your favorite weapon?: <input name="Weapon" type="text" size="20"><br> <br> <br> Please explain a little about yourself, when you are normally online,<br> when you can get a microphone (If you dont already have one) and anything<br> else you would like to inform us:<br> <textarea name="About" cols="50" rows="3" textarea="textarea"></textarea> <br> <br> Would you help pay for a server?: <select name="Pay"> <option selected>------------------</option> <option>Yes</option> <option>No</option> </select> <br> <br> And finally....<br> Where did you hear about our clan?:<br> <textarea name="Where" cols="50" rows="3" textarea="textarea"></textarea> <br> <br> <input name="Submit" type="submit" value="Submit Recruitment Form"> </div> </form> </left> </td> </tr> </table> <br/> </body> </html> Thanks for any help Quote Link to comment Share on other sites More sharing options...
phparray Posted January 26, 2009 Share Posted January 26, 2009 You'll need to post the contents of /forums/modules/apply.php for anyone to give a good answer. Quote Link to comment Share on other sites More sharing options...
MOWPHOENIX Posted January 26, 2009 Author Share Posted January 26, 2009 Here is the apply.php that it calls to on submitt. /*********************************************************************************************************/ /* Recruitment Kit - Please Read! */ /* */ /* Fill in the appropriate areas to your customisation. */ /* E.g. You must change your_email_address@email.com to your own one. */ /* IMPORTANT: DO NOT EDIT THE $App line unless you know what you are doing, o */ /* you can read the instruction manual included with your ClanKit package. */ /***********************************************************************************************************/ <? $EmailTo = "recruitment@masterofwar.net"; $Subject = "Recruitment Form Request from $FirstName\n"; $Name = "$FirstName\n"; $App = "RealName: $RealName\n GamerName: $GamerName\n Age: $Age\n Location: $Location\n EmailAddress: $EmailAddress\n Hours spent online per week: $Hours\n Other Clans: $Clans\n Will you be able to attend practices? $Practices\n Your favorite weapon?: $Weapon\n Your favorite vehicle: $Vehicle\n About yourself: $About\n Would you help pay for a server?: $Pay\n Where did you hear about 2ndRB?: $Where\n $WhyJoin\n IP Address: $REMOTE_ADDR"; mail($EmailTo,$Subject,$App,"From: $EmailAddress\n"); ?> <html> <body bgcolor="#000000"> <center> <font face="Arial"><font color="white"><b>Thank you for your time. VooDooChild Should get back with you shortly<br><A href="http://your site.com">Click Here</A> to return<b></font> </body> </html> Sorry was not sure to include this part or not on the first post Quote Link to comment Share on other sites More sharing options...
phparray Posted January 26, 2009 Share Posted January 26, 2009 The problem is this script was written for use with register globals turn on and the server you are using has them turned off. Turing them on is very dangerous from a security stand point. You should replace them with the provide post usage. Replace all variables that look like this $FirstName with one that look like this $_POST['FirstName'] That should fix it and make it a little more secure. Quote Link to comment Share on other sites More sharing options...
MOWPHOENIX Posted January 26, 2009 Author Share Posted January 26, 2009 I hope that this is what you had in mind,, if not I will go back to the drawing board lol. <? $EmailTo = "recruitment@masterofwar.net"; $Subject = "Recruitment Form Request from $_POST['FirstName'] \n"; $Name = "$_POST['FirstName'] \n"; $App = "RealName: $_POST['RealName'] \n GamerName: $_POST['GamerName'] \n Age: $_POST['Age'] \n Location: $_POST['Location'] \n EmailAddress: $_POST['EmailAddress'] \n Hours spent online per week: $_POST['Hours'] \n Other Clans: $_POST['Clans'] \n Will you be able to attend practices? $_POST['practices'] \n Your favorite weapon?: $_POST['weapon'] \n Your favorite vehicle: $_POST['vehicle'] \n About yourself: $_POST['about_you'] \n Would you help pay for a server?: $_POST['pay'] \n Where did you hear about -=M.O.W=-?: $_POST['where'] \n whyjoin -=M.O.W=-: $_POST['whyjoin'] \n IP Address: $_POST['REMOTE_ADDR'] mail($EmailTo,$Subject,$App,"From: $_POST['emailaddress'] \n"); ?> <html> <body bgcolor="#000000"> <center> <font face="Arial"><font color="white"><b>Thank you for your time. VooDooChild Should get back with you shortly<br><A href="http://masterofwar.net">Click Here</A> to return<b></font> </body> </html> Thank you for your help. Quote Link to comment Share on other sites More sharing options...
phparray Posted January 26, 2009 Share Posted January 26, 2009 This is exactly right. 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.