PDA

View Full Version : Can some one please tell me the html code for a request thing



Matt.
27-08-2005, 01:21 PM
Can some one tell me the html code for a request thing with a box @ the top say name a box under say with a arrow so they can choose requests, Shoutout, jokes and a msg box uder that so it shud look SOME thing like this

Name
--------------
--------------
_______________

--------------
Requests
--------------
___________________
------------
Msg box /
/
------------

Sorry about the pic thing it does not look that good

splintercell!
27-08-2005, 01:30 PM
<form name="form" id="form" method="post" action="contact.php">
<table border="0" cellpadding="1" cellspacing="0" width="400">
<tr>
<td width="35%">Username:</td><td width="65%"><input name="username" value="text" /></td>
</tr>
<tr>
<td width="35%">Subject:</td><td width="65%">
<select name="requests"><option>Request</option>
<option>Shoutout</option>
<option>Joke</option>
</select></td>
</tr>
<tr>
<td width="35%">Message:</td><td width="65%"><textarea name="message rows="15" cols="40"></textarea></td>
</tr>
</table>
</form>

that should do :)

Matt.
27-08-2005, 05:46 PM
Thanks for that but whats the code for a submit button so it will send it 2 a email address

splintercell!
27-08-2005, 06:00 PM
sorry I always forget to add that :S so this is it with the submit button.


<form name="form" id="form" method="post" action="contact.php">
<table border="0" cellpadding="1" cellspacing="0" width="400">
<tr>
<td width="35%">Username:</td><td width="65%"><input name="username" value="text" /></td>
</tr>
<tr>
<td width="35%">Subject:</td><td width="65%">
<select name="requests"><option>Request</option>
<option>Shoutout</option>
<option>Joke</option>
</select></td>
</tr>
<tr>
<td width="35%">Message:</td><td width="65%"><textarea name="message rows="15" cols="40"></textarea></td>
</tr>
<tr>
<td width="35%"></td>
<td width="65%"><input name="submit" type="submit" value="Submit" /></td>
</tr>
</table>
</form>

also to send it your email adress you need to create a php form handler :)

Matt.
27-08-2005, 06:10 PM
Uuumm..Is there just a html code i could just put in there some where so it will send it 2 my email address:S

splintercell!
27-08-2005, 06:12 PM
well yes but it dosent really work any more as most browsers have faded it out "/ so It better to use a php form handler. I could quickly write you one if you like. Only takes two seconds.

Matt.
27-08-2005, 06:14 PM
:o yes plz.If you play habbo (uk) i will give u a roller to say thx:)

splintercell!
27-08-2005, 06:21 PM
Ok so make a file called contact.php and paste this into it :) Replacing YOUREMAIL with your email adress :)



<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$name = $_POST['username'];
$request = $_POST['subject'];
$message = $_POST['message'];
$subject = $request;
$email = "
Name: $name
\n
Subject: $request
\n
Message: $message
";
mail("YOUR EMAIL", $subject, $email);
Header("Location: http://www.habboyradio.co.uk/thanks.html");
}
else
{
echo 'Sorry but your message could not be sent if the problem persists please contact the admin at YOUR EMAIL';
}
?>

that should be it really :) Then make a file called thanks.html and make a page saying something like "Your request has been submitted!"

Matt.
27-08-2005, 06:39 PM
Thx for that wats ur habbo name so i give u the roller+did u make the layout for habboyradio?

capuano.n
27-08-2005, 06:47 PM
can som1 post the html for the mad bit were i need to use php

splintercell!
27-08-2005, 06:51 PM
yes I did matty :) and capuano what do you mean??

capuano.n
27-08-2005, 06:54 PM
i dnt use a php host i use free webs i need to know the html so it can be sent to my addy
but i work on a site were wen som1 request requests i click on somit called dj login and i get the message and codes for that?

Matt.
27-08-2005, 07:17 PM
Iam trying to put the roller in ur don8 but i dont av rites:(

capuano.n
27-08-2005, 07:33 PM
matty wats ur host cause i cant host php

splintercell!
27-08-2005, 08:18 PM
Matty d/w I dont use habbo anymore ;) so Im not too bothered. For hosting i suggest www.ax-hosting.com they host php and are very reasonable. Although they are sometimes down it isnt too bad.

Matt.
27-08-2005, 08:23 PM
:o ok.Thanks

capuano.n
27-08-2005, 08:32 PM
lol nearly lost ur self somit there for nothing lol

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