Log in

View Full Version : Help on forms



pompey20
09-11-2005, 01:13 PM
I have read all the form tutorial's and i cant understand them. I copy the html to frontpage but they just come up as text in my website.

Can anyone help me how to create a simple form so people can apply for jobs on my website?

nelly
09-11-2005, 02:05 PM
you got dreamweaver if not want me make you one?

pompey20
09-11-2005, 03:33 PM
That would be great , ive messaged u

Rou
09-11-2005, 09:14 PM
Use Thybag.co.uk Its got a form handler:)

Dan Williamson
09-11-2005, 10:09 PM
Use Thybag.co.uk Its got a form handler:)

Personally i agree with that.

- Dan

Ash♥
11-11-2005, 05:55 AM
Here's a form I am using on my website.

First, create these files.

confirm.php
&
contact.html

Place this code in the contact.html file.
<form action="confirm.php" method="post">
Habbo name: <br>
<input type="text" name="habboname"><br>
Your e-mail: <br>
<input type="text" name="youremail"><br>
Message:<BR>
<textarea name="message" width="10" hight="10"></textarea><br>
<input type="submit" value="Send">
</form>

Place this code in the confirm.php file.
<?php
$name=$_POST['habboname'];
$email=$_POST['youremail'];
$comments=$_POST['message'];
$to="[email protected]";
$message="Name: $name \n Email: $email \n Message: $message \n IP: $REMOTE_ADDR";
if(mail($to,"E-mail from your site",$message,"From: $email\n")) {
echo "";
} else {
echo "Error.";
}
?>

- Your visitors will be redirected to confirm.php when they've sent their message. IP's are logged -

Flisker
11-11-2005, 12:50 PM
Wow Jaxxy. Your a Brill Webmaster ;) your should work for habbox :P

Dan Williamson
11-11-2005, 03:26 PM
Wow Jaxxy. Your a Brill Webmaster ;) your should work for habbox :P

Nahh it's a simple PHP form code.

- Dan

Want to hide these adverts? Register an account for free!