Knoxgates
Supreme Member
- Aug 9, 2008
- 1,265
- 927
Hi,
I download this script from sourceforge and i want to edit it, But i m not familiar with HTML or PHP. can anybody help
Html form:
mail.php
The HTML form contains fields Name,Email Address and message fields. But i want First Name, Last Name, And Email Address fields instead of that.
Can anybody edit this code. so that i m able to run this script.
I download this script from sourceforge and i want to edit it, But i m not familiar with HTML or PHP. can anybody help
Html form:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
?http://www.w3.org/TR/html4/strict.dtd?>
<html>
<head>
<title>A simple form</title>
</head>
<body>
<h1>A form</h1>
<form action=?mail.php? method=?post?>
<label for=?theName?>Name:</label><br>
<input type=?text? name=?name? id=?theName?><br>
<label for=?theEmail?>Email Address:</label><br>
<input type=?text? name=?email? id=?theEmail?><br>
<label for=?theMessage?>Message:</label><br>
<textarea name=?message? id=?theMessage?></textarea><br>
<input type=?submit? value=?send?>
</form>
</body>
</html>
mail.php
<?php
//enter the address to send the form to
$toAddress = [email protected]?;
//enter the subject of the email you recieve
$subject = ?Contact from Web?;
//enter the path to the file where the user gets sent to after submitting the form
$thankYou = ?thanks.php?;
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$body = ?
$name
$message?;
mail($toAddress, $subject, $body, ?From: $email?);
header(?Location: $thankYou?);
?>
The HTML form contains fields Name,Email Address and message fields. But i want First Name, Last Name, And Email Address fields instead of that.
Can anybody edit this code. so that i m able to run this script.