WebCheez Posted April 25, 2011 Share Posted April 25, 2011 So, I'm trying to make a script that will send emails from apparently anyone. <?php $email = $_REQUEST['email'] $target = $_REQUEST['target'] $message = $_REQUEST['message'] $subject = $_REQUEST['subject'] mail( $target, $subject, $message, "From: $email" ); echo "Mail sent." ; ?> Here's the HTML, if it matters. <html> <head> <title>EMAIL SPOOFER</title> </head> <body> <p>This program can make emails appear as if they came from any email address, real or fake!</p> <form method="post" action="mailspoof.php"> Apparent sender: <input name="email" type="text" /><br /> Subject: <input name="subject" type="text" /><br /> Recipient: <input name="target" type="text" /><br /> Message:<br /> <textarea name="message" rows="15" cols="40"> </textarea><br /> <input type="submit" /> </form> </body> </html> Here's the error I'm getting from my webhost: Parse error: syntax error, unexpected T_VARIABLE in /home/a5938041/public_html/mailspoof.php on line 3 If I know me, it's probably the most stupid mistake in the universe, so please point it out. Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/ Share on other sites More sharing options...
kenrbnsn Posted April 25, 2011 Share Posted April 25, 2011 And your problem is? Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206132 Share on other sites More sharing options...
WebCheez Posted April 25, 2011 Author Share Posted April 25, 2011 Oh wow. I failed. I can't believe this forum doesn't have an edit post button. Scroll down on the HTML code Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206148 Share on other sites More sharing options...
fugix Posted April 26, 2011 Share Posted April 26, 2011 it actually does have an edit post button. Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206188 Share on other sites More sharing options...
fugix Posted April 26, 2011 Share Posted April 26, 2011 and i believe that you are receiving this error because you are not ending your coding lines with a ; Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206190 Share on other sites More sharing options...
WebCheez Posted April 26, 2011 Author Share Posted April 26, 2011 *facepalm* I told you that it was the most stupid mistake in the universe! There is an edit button? Where??? Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206207 Share on other sites More sharing options...
fugix Posted April 26, 2011 Share Posted April 26, 2011 It might be timed. But it's above your post to the right-ish. Looks like a piece of paper and pencil Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206255 Share on other sites More sharing options...
WebCheez Posted April 26, 2011 Author Share Posted April 26, 2011 I don't see it. Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206638 Share on other sites More sharing options...
Pikachu2000 Posted April 26, 2011 Share Posted April 26, 2011 Post editing is time-limited. Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206643 Share on other sites More sharing options...
fugix Posted April 27, 2011 Share Posted April 27, 2011 oh okay..wasnt sure Link to comment https://forums.phpfreaks.com/topic/234712-e-mail-script-problem/#findComment-1206688 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.