PDA

View Full Version : Online Form HTML Codes



Acidude
14-08-2005, 07:34 PM
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?

Luckyrare
14-08-2005, 07:38 PM
It isnt code its codes...


Try downloading a PHP form in a .zip folder or wait for Mentor to next come online

splintercell!
14-08-2005, 07:47 PM
that isnt going to happen "/ you need to make one using mysql or just sending the to the same adress...

Mentor
14-08-2005, 08:32 PM
its quite easy to do, i rember adding somthing about it to my form handler tutoral "/

splintercell!
14-08-2005, 08:47 PM
sending things to different emails.. actually ive had an idea :D

Acidude
15-08-2005, 10:01 AM
Good thing my host came with MySQL :D

Mentor
15-08-2005, 10:02 AM
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 "/

splintercell!
15-08-2005, 10:29 AM
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

Mentor
15-08-2005, 10:31 AM
he was talking about sending to differnet adresses so i assumed he ment emailing them "/

Acidude
15-08-2005, 10:41 AM
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.

Acidude
15-08-2005, 01:54 PM
Aaaaaagh the form won't work :(

I'll post the code, and you could perhaps check over it for me :)

Thanks.



<?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';
}


?>

:Woof
15-08-2005, 01:58 PM
do you mean this? :

you do the form details come up on the Dj says box?

splintercell!
15-08-2005, 02:45 PM
you need to name the variables differently so they are individual =]

Acidude
15-08-2005, 03:08 PM
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

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