cascadingstylez
Account Closed
- Impact
- 6
I have write a simple Copy and Paste script for other members to use on there websites. Its a basic contact form script. It has no styling, ive just created it simple and basic, but if you need it styled/changed id be willing to do so for a small $fee.
There are many ways to send mail, this is just one of them and works well. Copy and paste, upload to your web server and test it out.
Enjoy
There are many ways to send mail, this is just one of them and works well. Copy and paste, upload to your web server and test it out.
Enjoy
Code:
<form method="post" action="<?php echo($PHP_SELF) ?>">
<fieldset>
<legend>Email Form</legend>
<p><label>Name:</label><input type="text" name="name" id="name"></p>
<p><label>Email:</label><input type="text" name="email" id="email"></p>
<p><label>Comments:</label><input type="text" name="comments" id="comments"></p>
<p><input type="submit" name="submit" id="submit" value="Send Message"></p>
</fieldset>
</form>
<?php
# Add your email address
$to = '[email protected]';
# Add a default subject
$subject = 'You Have Mail From Your Website';
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$comments = $_REQUEST['comments'];
$submit = $_REQUEST['submit'];
$body = "$name $email $comments";
if(isset($submit)) {
mail($to, $subject, $body);}
?>









