Hi; I am trying to make a php contact form running from within a gamescript. The code for the form: <blockquote><strong>Submit Partner Link Application:</strong></blockquote> <table width=55%> <form action="/?page=partner" method="post"> <tr> <td> Anchor : </td> <td><input type="text" name="name"/></td> </tr> <tr> <td>Link (with http://) : </td> <td><input type="text" name="link" /></td> </tr> <tr> <td>Email : </td> <td><input type="text" name="email" /></td> </tr> <tr> <td></td> <td><input alt="Send" type="image" class="btn" name="Submit" src="templates/images/btnsend.png" /> </form> </td> </tr> </table> </div> The send mail script: <? $from = "From: Free Flash Games <support@freeflashgames.us>"; $to = "ComCenter <sales@comcenter.org>"; $subject = "Hi! "; $body = "TEST"; if(mail($to,$subject,$body,$from)) echo "MAIL - OK"; else echo "MAIL FAILED"; ?> The form finds the partner.php, but nothing happens. How do I return the form values into the email? Any tips are welcome, I'm stuck, need a little push to keep going. Thanks.
When I use the 'Send Mail' script by itself, MAIL OK is printed. But when 'Submiting' the form, nothing is printed at all (you can see for yourself here). This is the form. The only reason I still have 'TEST' as the body is because I wanted the script to return a value, then I could take it from there.
Maybe action="/?page=partner" doesn't point to the send mail script? Try replace ALL send mail script replace with testing point: <?php print "Action is OK"; ?> Code (markup): So you'll be sure where problem is.
Same results; didn't return anything. However, when I typed the addrress: http://www.freeflashgames.us/partner.php Voila! So why doesn't it work from the submit button?
Then try insert in html: <form action="/partner.php" method="post"> HTML: /partner.php must be path to script
Excellent! Submission button works, I hope you realize the size of headache I've had over this. Thanks.