Ok, so I need a code for my site so people can contact me via email through the form if ya get me, does anyone have the code? PLEASE!

Ok, so I need a code for my site so people can contact me via email through the form if ya get me, does anyone have the code? PLEASE!
Lol
http://www.habboxforum.com/showpost....80&postcount=5
PM me if you need any help with any of the code or anything.
Sorry that one dosent work mas there is no where to put your emailand for the w3 schools it dosent properly explain what im looking for
![]()
Lol
we don't know exactly what your looking for;
what we know is;
Its a PHP email form
It has to email you
....
I fail to see how it doesn't do what you need it to do?
What...? I don't understand either "there is no where to put your email", do you mean the users email - or your email?
Right IF YOU CAN READ it Says orry that one dosent work mas there is no where to put your email THAT WAS THE OTHER GUYS POST IF U READ!! And Im looking for a CONTACT US PHP Code for my Website..
Lol
emailmeform.com
best one tbh, creat an account and then just put the html code on ur site
What I gave you was a contact form. If you can't edit that to your liking you mayswell give up now...
Edit: Actually no, I can hardly read what you said.
Extremley simple...
Contact.php
---------------
Mail.phpPHP Code:<form method="post" action="Mail.php">
<?
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
Your Name: <br />
<input type="text" name="name" size="35" />
<br />
Your Email:<br />
<input type="text" name="email" size="35" />
<br /> <br />
<br />
Why you contacted us:<br />
<select name="attn" size="1">
<option value="General">General Feedback</option>
<option value="Technical Support">Technical Support</option>
<option value="Job Application">Job Application</option>
<option value="Compliment">Compliment</option>
<option value="Complaint">Complaint</option>
</select>
<br /><br />
Message:
<br />
<textarea name="notes" rows="4" cols="40"></textarea>
<br />
<input type="submit" value="Send" />
</form>
All you have to do is edit the options on Contact.php and put your email in Mail.phpPHP Code:<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['name'];
$visitormail = $_POST['email'];
$notes = $_POST['notes'];
$attn = $_POST['attn'];
// Stops someone attempting to do a simple inclusion hack.
if (eregi('http:', $notes)) {
die ("Lol you fail.");
}
// End inclusion hack block
// ------------------------------------------
// Stops someone from entering an invalid email
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>Enter a valid e-mail</h2>\n";
$badinput = "<h2>Email was not sent!</h2>\n";
echo $badinput;
die ("Go back!");
}
// End Email validation
// ------------------------------------------
// Makes sure all fields are filled in
if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h2>Please fill in all fields</h2>\n";
die ("Use back!");
}
// End inclusion hack block
// ------------------------------------------
// Gathers the information to be said in the email.
$todayis = date("F j, Y, g:i a");;
$attn = $attn ;
$subject = $attn;
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
-------------------------------------- \n
Attention: $attn \n
-------------------------------------- \n
Message: \n
$notes \n
-------------------------------------- \n
From: $visitor ($visitormail)\n
-------------------------------------- \n
Additional Info: \n
-------------------------------------- \n
IP = $ip \n
-------------------------------------- \n
Browser Info: $httpagent \n
-------------------------------------- \n
Referral : $httpref \n
-------------------------------------- \n
";
$from = "From: $visitormail\r\n";
// End email info
// ------------------------------------------
// Sends off the email.
mail("YOUR_EMAIL_HERE", $subject, $message, $from);
?>
Simple.
Want to hide these adverts? Register an account for free!