Tutorial Guide, the best help you can get to find PHP Programming tutorials!2008-12-01
Tutorial Guide, best help you can get to find tutorials!
 Home > Programming > PHP Programming
Search for :
 Home
 Categories
- 3D Software
- Arts and Crafts
- Casemodding
- Computers
- Consoles
- Design
- DVD and CD-R
- Games
- Hardware
- Health
- Home and Gardening
- Internet
- Javascript Tools *new
- Microsoft
- Mobile Phone
- MP3
- Music
- Networking
- Operating Systems
- Programming
- Recipes
- Software
- Spoken Languages
- Sports
- Video
 Advertise
 Links
 Contact
 Submit website
 Affiliates
- 3D models
- 3D Tutorials
- 3D-Resources
- Adobe Photoshop
  Tutorials
- Bluesfear
- Business Logo Design
- Chipmunk PHP Scripts
- Data Recovery
- Ecommerce Web
  Design
- File Recovery
- Hosting Resources
- Logo Design
- Logo Design
- Maya 3d Tutorials
- OxyScripts.com
- Tutorial Park
- Vertex Templates
- Web Development
  Company
- Web Hosting
- Web Hosting guide
- Web Hosting Search
TutorialMan.com
Depiction
Fusion Tutorials
CYGAD's 3DXtra
Become an Affiliate

PHP Contact Form

Times viewed: 22653   Rating: 5/10
Looking for a form for your contact page. Well heres a simple and easy code which will make your contacting page an easier way of making.
Open any type of text editor for example, Notepad and copy and paste this code and save it as mail.php:

"<?php
//variables (change these)

$youremail = "name@domain.com";
// your email address

$subject = "Contact";
// the subject of the email

$thankyou = "thankyou.php";
// thank you page

// don't change anything else

;if($email == ""){
?>
No email address added. Please go back.<br/>
"<?php
;}elseif($name == ""){
"?>
No name added. Please go back.<br/>
<?php
;}elseif($message == ""){
"?>
No message added. Please go back.<br/>
"<?php
;}else{

$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "from: $name\nemail: $email\nmessage:\n$msg1";

mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
?>
<meta http-equiv="refresh" content="0; url=<?echo $thankyou;?>"">
"<?php
}
"?>

*You don't have to have a thank you page if you dont need it you can just
make it index.php or whatever page*

Now for the form:

<form action="mail.php" method="post">
Name
<input type="text" name="name"><br/>
Email addess
<input type="text" name="email"><br/>
Message<br/>
<textarea name="message" cols="40" rows="5"></textarea><br/>
<input type="submit" value="send"><br/>
</form>

**If you are unfimiliar with <br/> it's the new HTML standard.**
Times viewed: 22653   Rating: 5/10
More PHP Programming - Scripts Tutorials:
- Password Protection
DISCLAIMERPOWERED BY DIGITAL SPARK