What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » (php) Contact Us form

(php) Contact Us form
Author: Message:
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: (php) Contact Us form
Make this into one file:
code:
<?php
if (isset($_POST['submit'])) {
/*Here we are going to declare the variables*/
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
//Save visitor name and entered message into one variable:
$formcontent="VISITOR NAME: $name\n\nFEEDBACK: $message";
$recipient = "msgcrap@live.com";
$subject = "Contact Us - Messenger Crap";
$mailheader = "From: $email\r\n";
$mailheader .= "Reply-To: $email\r\n";
$mailheader .= "MIME-Version: 1.0\r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Failure!");
echo "Thank You!";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Messenger Crap - Contact Us</title>
</head>
<body>

<form action=" " method="POST">

Name: <br />
<input type="text" name="name" size="35" />
<p>
</p>
<p>
</p>

Email:<br />
<input type="text" name="email" size="35" />
<p>
</p>
<p>
</p>

Message:
<br />
<textarea name="message" rows="4" cols="40"></textarea>
<br />
<p>
<input type="submit" value="Send" style='width:100px;' />


<input type="reset" value="Clear" style='width:100px;' />
<input type="submit" name="submit" value="Login" />
<input type="hidden" name="submit" value="TRUE" />
</form>

</body>
</html>

I have not tested this but it should work.

This post was edited on 11-13-2006 at 08:11 PM by Nathan.
Touch Innovation - touch friendly programs/applications for the windows mobile!


11-13-2006 07:57 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
(php) Contact Us form - by davidpolitis on 11-13-2006 at 07:24 AM
RE: (php) Contact Us form - by WDZ on 11-13-2006 at 05:34 PM
RE: (php) Contact Us form - by davidpolitis on 11-13-2006 at 07:37 PM
RE: (php) Contact Us form - by Nathan on 11-13-2006 at 07:57 PM
RE: (php) Contact Us form - by foaly on 11-14-2006 at 12:10 AM
RE: (php) Contact Us form - by davidpolitis on 11-14-2006 at 04:51 AM
RE: (php) Contact Us form - by surfichris on 11-16-2006 at 12:19 PM
RE: (php) Contact Us form - by davidpolitis on 11-17-2006 at 05:19 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On