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. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 25, 2011 Share Posted April 25, 2011 And your problem is? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 ; Quote Link to comment 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??? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
WebCheez Posted April 26, 2011 Author Share Posted April 26, 2011 I don't see it. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted April 26, 2011 Share Posted April 26, 2011 Post editing is time-limited. Quote Link to comment Share on other sites More sharing options...
fugix Posted April 27, 2011 Share Posted April 27, 2011 oh okay..wasnt sure 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.