Jump to content

Sendmail.php need help


tvadon

Recommended Posts

Hello,

 

I have been pulling my hair out over this simple php sendmail code. I need some help. Here is the html table with all the fields (9 in all):

 

<td width="345">

 

<center>

 

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

 

<table>

 

<tr><td colspan=2><center><div align="center"><font size="6" color="#ff0000"><font size="5" color="#ff0000">

<strong>Enter your information below so that you can get immediate access to our list of BELOW MARKET handyman

deals in the Austin area!</strong></font> </font></div></center></td></tr>

 

<tr> <td> Email: </td> <td> <input name="email" type="text" value="" size="20"> </td></tr>

 

<tr> <td> First Name: </td> <td> <input name="first name" type="text" value="" size="20"> </td></tr>

 

<tr> <td> Last Name:</td><td><input type="text" name="last name" value="" size="20"></td></tr>

 

<tr> <td> Address:</td><td><input type="text" name="address" value="" size="20"></td></tr>

 

<tr> <td> City:</td><td><input type="text" name="City" value="" size="20"></td></tr>

 

<tr> <td> State:</td><td><input type="text" name="State" value="" size="20"></td></tr>

 

<tr> <td> Zip:</td><td><input type="text" name="zip" value="" size="20"></td></tr>

 

<tr> <td> Phone:</td><td><input type="text" name="phone" value="" size="20"></td></tr>

 

<tr> <td> Fax:</td><td><input type="text" name="fax" value="" size="20"></td></tr>

 

<tr> <td align="center" colspan="2"><input type="submit" name="submit" value="Free Instant Access!"></td></tr>

 

</table>

 

</form>

 

</center>

 

</td>

 

    </tr>

 

 

AND HERE IS THE PHP:

 

<?php

  $email = $_REQUEST['email'] ;

  $first name = $_REQUEST['first name'] ;

  $last name = $_REQUEST['last name'] ;

  $address = $_REQUEST['address'] ;

  $city = $_REQUEST['city'] ;

  $state = $_REQUEST['state'] ;

  $zip = $_REQUEST['zip'] ;

  $phone = $_REQUEST['phone'] ;

  $fax = $_REQUEST['fax'] ;

 

 

  mail( "[email protected]", "Austin Buyer on the line!",

    $first name, $last name, $address $city, $state, $zip, $phone, $fax,  "From: $email" );

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

?>

 

 

 

I KNOW THERE ARE PROBABLY MANY ERRORS BUT I CAN'T THINK OF ANY..... OBVIOUSLY BRAND NEW TO THIS STUFF.

THANKS FOR THE HELP.

 

Link to comment
https://forums.phpfreaks.com/topic/120281-sendmailphp-need-help/
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.