PDA

View Full Version : Form help needed



tleftye
31-10-2005, 04:22 PM
Ok I know abit how to make a form but the problem is I can only make them with limited submission. Like , the one I have only can get 50 submits a month! Can some1 explain me (with codes) how to make a form with unlimited submissions plz

Would be great ;)

splintercell!
31-10-2005, 04:42 PM
Just write a php form handler :| its as simple as abc.

tleftye
31-10-2005, 04:43 PM
lol Not experienced with php.. Can you do it plz? :p

Dan Williamson
31-10-2005, 04:44 PM
Try reading Mentors tutorial found in his sig, also www.ThyBag.co.uk has a new PHP form handler.

- Dan

splintercell!
31-10-2005, 04:46 PM
If you give me the required fields then I might do.. but Dan's suggestion is good that way you will learn something.

tleftye
31-10-2005, 04:53 PM
Can you please make it for me splinter? plz

This are the required fields:

*Habbo name:
*E-mailadress:
*Subject : -drop down menu with following info : contact us , questions , *ideas , comments , link us , jobs-
*A box with the name :Comment
*and a submit button

splintercell!
31-10-2005, 05:15 PM
<?php
$habboname = $_POST['habboname'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$comment = $_POST['comment'];
$ip = $_SERVER['REMOTE_ADDR'];
if((!$habboname) or (!$email) or (!$comment)) {
echo "You havent filled in the contact form properly!";
exit();
}
else {
$message = "
Name: $habboname \n
Email: $email \n
Subject: $subject \n
Comment: $comment \n
IP: $ip";
mail("YOUR EMAIL ADDRESS!", $message, $subject);
header("Location: thanks.html");
}
?>

tleftye
31-10-2005, 05:31 PM
Thanks but do I need to add somthing because it keeps getting me to the "You havent filled in the contact form properly!" where can i find the form itself?

splintercell!
31-10-2005, 05:49 PM
Just write it in html its not that hard.

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