M0B2 Posted March 16, 2009 Posted March 16, 2009 this will allow a person to contact a game through email. create a file called contact.php and in it add <?php /* -- Mobz Productions -- -- A Product of Mobz Productions -- -- For contacting game -- -- Created by M0B2 -- -- Contact.php -- */ print "Staff Contact form: if($_POST['mes']) { $to=Your Email Here; $subj = "Your Game Name Contact Form"; $mess =$_POST['mes']; $headers ="From: $_POST['email'] "; mail($to,$subj,$mess,$headers); } print "Your message has been sent to "Your Game Name Contact Email" You will get a reply as soon as posible. <a href='http://www.yourgameurl.com/index.php>Back to game...</a>"; } else { print "You are contacting Your Game Name game. <form action='contact.php' method='post'> Your Email: <input name="email" type="text" value="Your Email Here"> <textarea cols=30 rows=15 name='mes'> </textarea> <input type='submit' value='Send!'></form>"; } $h->endpage(); ?> any prob please post Quote
Eternal Posted March 16, 2009 Posted March 16, 2009 Re: Contact Staff Through Email You forgot the code tags You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Also a few Errors but fixed, Quote
Uridium Posted March 16, 2009 Posted March 16, 2009 Re: Contact Staff Through Email Eternal can you explain what errors you fixed so the postee knows for future reference :) Quote
Eternal Posted March 16, 2009 Posted March 16, 2009 Re: Contact Staff Through Email um ok :D You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Wickidnezz Posted March 16, 2009 Posted March 16, 2009 Re: Contact Staff Through Email You forgot the code tags You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Also a few Errors but fixed, sorry to say m8 the fixed bit is false:( Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/savage/public_html/contact.php on line 17 Quote
shedh Posted March 16, 2009 Posted March 16, 2009 Re: Contact Staff Through Email what about this does this work: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Wickidnezz Posted March 18, 2009 Posted March 18, 2009 Re: Contact Staff Through Email Nope Its Still Bugged But Just Atip Take A Look At The Differences Of Each Of These Heres The One You Posted: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Here It Is Fixed And 2 } Removed From Were Not Needed You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Should Be 100% Working Order As I Tested It To Make Sure It Was Working And Results It Worked Fine Problem Was else { Was Put Were Not Needed Just Like The 2 Extra } Which 1 Was Over Top Of else { Like So } else { The Other Was Over Top Of $h->endpage(); ?> Like So } $h->endpage(); ?> And That Is That As Illusions Asked External To Do On What He Claimed To Fix Which Wasnt Really Fixed I Have Gone Ahead And Told You Exactly Why It Wasnt Working Correctly Quote
tozza1000 Posted February 17, 2010 Posted February 17, 2010 CRap LAYOUT the prervious reply was yes fixed but horrible because you can only send a message no name or email. use this to enable users to send you there email and name plus there message. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Dave Posted February 17, 2010 Posted February 17, 2010 First rule of all contact forms, Use a captcha... Do you want someone sending you thousands of emails from your own contact box. Quote
Jordan Palmer Posted February 17, 2010 Posted February 17, 2010 You just brought back a 1year old post to post yet another useless post? Wow Thanks lol Some kind off activation is needed as you'll get Spammed ;D Quote
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.