TheorizedGaming Posted August 7, 2013 Share Posted August 7, 2013 I get a server error when doing this form heres all the code: <?php $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $email = $_POST['email']; $username = $_POST['username'] $to = "TheorizedGaming@gmail.com"; $subject = "New Application!"; $message = "Hello, $first_name $last_name has just left us a form"; mail($to, $subject, $message, "From: " , $first_name . $last_name); echo "Your message has been sent!"; ?> The error is at line 6($to)? Could someone help me? Quote Link to comment Share on other sites More sharing options...
Solution TOA Posted August 7, 2013 Solution Share Posted August 7, 2013 Forgot a ; on the line before Quote Link to comment Share on other sites More sharing options...
TheorizedGaming Posted August 7, 2013 Author Share Posted August 7, 2013 Forgot a ; on the line before lol thanks I didn't think it was that simple, thanks. Quote Link to comment Share on other sites More sharing options...
TheorizedGaming Posted August 7, 2013 Author Share Posted August 7, 2013 (edited) nvm Edited August 7, 2013 by TheorizedGaming 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.