View Full Version : Contact form
R4ller
18-03-2005, 04:37 PM
hey i need a contact form for my habboish.com site that is to be open around 6pm gmt tonight...
i also need a form so people can sign up to be in with a chance of winning the habboish website awards
can anyone give me a code?
COMPLETE ASWELL SO I DONT NEED TO ADD ANYTHING:)
(apart from my email for it to be sent to
:Blob
18-03-2005, 04:42 PM
http://www.cutandpastescripts.com
iRoss
18-03-2005, 04:45 PM
lol!!! ur making a forum within an hour! LOLLLLL!
its a "form" for sending info to a data file
R4ller
18-03-2005, 04:58 PM
Simple im on about a form...
not a forum
:Blob
18-03-2005, 05:40 PM
ITS NOT A FORUM ITS A FORM U BLIND (OR U CANT READ) PERSON!
splintercell!
18-03-2005, 05:48 PM
Ok here is the code for the actual form :
<form method="post" action="sendmail.php">
Username: <input name="Name" type="text" /><br />
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
then make a page sendmail.php and add this:
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "<!--EMAIL HERE-->", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.mymx.ax-hosting.com/index.php" );
?>
and then create and page say thanks.htm to say that the email has been sent :)
iRoss
18-03-2005, 08:02 PM
ITS NOT A FORUM ITS A FORM U BLIND (OR U CANT READ) PERSON!
it said forum u *****
Edited by DJ-3000 (Forum Manager): Please don’t be rude to members of the forum.
:Blob
18-03-2005, 08:04 PM
Yes i know u said a forum
BUT YOU CAN CREATE FORMS ON CUTANDPASTESCRIPTS.COM
iRoss
18-03-2005, 08:05 PM
i read it wrong so what. stupid *****
Edited by DJ-3000 (Forum Manager): Please don’t avoid the word filter or be rude to any members of the forum.
Mentor
19-03-2005, 03:09 PM
Forms are quite easy in php, just set a form up like you normaly would.
Then the php just inpritys it and sends it with to functions
$randomVAr = $_POST['name-of-input'];
whcih just sets $randomVAr to contin the data inputed by the input. Do as much as you like
and at teh end of script for interpting just send to your self
with
$message = "Emailed from $varforemail \n about $anotehrvarible \n for $yetanotehr one becuse of $finalvar";
mail( "your email", "email title", $message" );
The $vars conting the inputed data, exspet you have to set the var, befor you can write it. and the $message varible just is how its diplayed
( \n = new line btw)
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.