Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Feb 2005
    Posts
    2,503
    Tokens
    0

    Latest Awards:

    Default Can some one please tell me the html code for a request thing

    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

  2. #2
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    <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


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  3. #3
    Join Date
    Feb 2005
    Posts
    2,503
    Tokens
    0

    Latest Awards:

    Default

    Thanks for that but whats the code for a submit button so it will send it 2 a email address

  4. #4
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    sorry I always forget to add that :S so this is it with the submit button.
    HTML Code:
    <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


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  5. #5
    Join Date
    Feb 2005
    Posts
    2,503
    Tokens
    0

    Latest Awards:

    Default

    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

  6. #6
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    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.


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  7. #7
    Join Date
    Feb 2005
    Posts
    2,503
    Tokens
    0

    Latest Awards:

    Default

    yes plz.If you play habbo (uk) i will give u a roller to say thx

  8. #8
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    Ok so make a file called contact.php and paste this into it Replacing YOUREMAIL with your email adress

    PHP Code:
    <?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!"


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

  9. #9
    Join Date
    Feb 2005
    Posts
    2,503
    Tokens
    0

    Latest Awards:

    Default

    Thx for that wats ur habbo name so i give u the roller+did u make the layout for habboyradio?

  10. #10
    Join Date
    Jun 2005
    Location
    In ur bedroom
    Posts
    239
    Tokens
    0

    Default

    can som1 post the html for the mad bit were i need to use php

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •