-
Online Form HTML Codes
I've been looking through millions of websites that supposedly can make the forms for you, but no of them do what I want ¬_¬
I want to make a Radio requests form in a similar way to what they have on Habbox Radio, but sending the responses to a different address. What code do I need to use?
-
It isnt code its codes...
Try downloading a PHP form in a .zip folder or wait for Mentor to next come online
-
that isnt going to happen "/ you need to make one using mysql or just sending the to the same adress...
-
its quite easy to do, i rember adding somthing about it to my form handler tutoral "/
-
sending things to different emails.. actually ive had an idea :D
-
Good thing my host came with MySQL :D
-
why would u need mysql thogh? i still dont get that, and i checked and it is on the end of my tutoral on form handlers http://habboxforum.com/showthread.php?t=26889
very simple to do "/
-
he wants to do a radio request forum so hes best to create a sort of they use form -> sent to mysql- appears on page
-
he was talking about sending to differnet adresses so i assumed he ment emailing them "/
-
I just need to be able to make it so that the requests are sent to the active DJ XD
Whichever is the best way to do that I don't know.
-
Aaaaaagh the form won't work :(
I'll post the code, and you could perhaps check over it for me :)
Thanks.
HTML Code:
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$mess = $_POST['habbo'];
$mess = $_POST['type'];
$mess = $_POST['dj'];
$mess = $_POST['message'];
$messig = "
Habbo Name: $mess
\n
Message Type: $mess
\n
Current DJ: $mess
\n
Message: $mess
";
$subject = $habbo;
mail($mailto, $subject, $messig);
$tool = $_POST['dj']; // now its a varible
//next we do the if stament
if($dj == "DJ Frobberwob"){$mailto = "andygreen1000********.com" ;}
elseif($dj == "DJ Acid"){$mailto = "Ziffachan********.com" ;}
else {die("Error, no one to send email to"); }
Header("Location: requestconfirm.php");
}
else
{
echo 'ERROR';
}
?>
-
do you mean this? :
you do the form details come up on the Dj says box?
-
you need to name the variables differently so they are individual =]
-
Could you make any suggestions?
I'll post the error message too.
Warning: Cannot modify header information - headers already sent by (output started at /home/habbophu/public_html/forms.php:9) in /home/habbophu/public_html/forms.php on line 41