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 = "[email protected]"; $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? Link to comment https://forums.phpfreaks.com/topic/280924-mailing-help/ Share on other sites More sharing options...
TOA Posted August 7, 2013 Share Posted August 7, 2013 Forgot a ; on the line before Link to comment https://forums.phpfreaks.com/topic/280924-mailing-help/#findComment-1443860 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. Link to comment https://forums.phpfreaks.com/topic/280924-mailing-help/#findComment-1443863 Share on other sites More sharing options...
TheorizedGaming Posted August 7, 2013 Author Share Posted August 7, 2013 nvm Link to comment https://forums.phpfreaks.com/topic/280924-mailing-help/#findComment-1443864 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.