PX : code

a Simple Email form by Thomas
Rating: 4.50
Download this code



/*put this on the page you want the form*/

<td><table WIDTH="400" >
<tr>
<td ALIGN=LEFT><form ACTION="email3.php3" METHOD="POST">Name:<br><input TYPE="text" NAME="name" SIZE="20" MAXLENGTH="30"><br>Email you are senting to:
<br><input TYPE="text" NAME="email1" SIZE="20" MAXLENGTH="30">
<p>Your Email:
<br><input TYPE="text" MAXLENGTH="40" WIDTH="20" NAME="email2"><br>Subject:<br><input TYPE="text" NAME="subject" SIZE="20" MAXLENGTH="30">
<br>Message:
<br><textarea ROWS="11" COLS="40" NAME="message"></textarea>
<p><input TYPE="submit" VALUE="Send it!"></form>
<br></form></td>
</tr>
</table>

/* call this file email3.php
<?php

PRINT "<CENTER>";
PRINT 
"Hello, $name.";
PRINT 
"<BR><BR>";
PRINT 
"Thank you for using our mailing scrip";
PRINT 
"</CENTER>";

mail("$email1",
"$subject","

$message. 

My E-mail is $email2.


Greetings from $name."
);

?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.