Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Dec 2004
    Posts
    121
    Tokens
    0

    Default [CODE] Radio Requests/Shoutouts Form.

    This is a code i posted on HabboForum that is just a simple Radio Requests/Shoutouts etc. Form.

    request.html
    HTML Code:
     <form action="sendrequest.php" method="post">Habbo Name<br> <br> <input type="text" size="40" name="name" style="font-family: verdana; font-size: 10px"><br> <br> Message Type<br> <br> <select size="1" name="type"> <option value="Request" selected>Request</option> <option value="Shout Out">Shout Out</option> <option value="Joke">Joke</option> <option value="Competition">Competition</option> <option value="Other">Other</option> </select><br> <br> Message<br> <br> <textarea rows="5" cols="24" name="message"></textarea><br> <br> <input type="submit" value="Send!" name="submit" style="font-family: verdana; font-size: 10px"></form>
    sendrequest.php
    PHP Code:
    <?php
    if(isset($_POST['submit'])) {
    $name $_POST['name'];
    $type $_POST['type'];
    $message $_POST['message'];
    mail("[email protected]""$type from $name""Habbo Name: $name \n Type: $type \n - Message - \n $message");
    echo 
    "Thank you for sending a message $name and keep tuned in!";
    } else {
    echo 
    "Please use the Request Form to send requests! <a href='request.html'>< Back</a>";
    }
    ?>

  2. #2
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Post

    Very helpful codes.
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  3. #3
    Join Date
    Aug 2005
    Location
    Webdesign Section
    Posts
    1,032
    Tokens
    0

    Latest Awards:

    Default

    Thats on habboforum :|

  4. #4
    Join Date
    Dec 2004
    Posts
    121
    Tokens
    0

    Default

    If you read my post, you would see that i said that I posted it on HF

  5. #5
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    This is realy just a basic form and handler "/ would getting a flood of emails realy work as a request system if people wanted to go threw alot of them "/

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

    Latest Awards:

    Default

    Thats gr8 +rep

  7. #7
    Join Date
    Dec 2004
    Posts
    121
    Tokens
    0

    Default

    Mentor, you're starting to get on my nerves, all the time you throw bad comments, in your signature it says that you'll tell me how to improve.

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

    Latest Awards:

    Default

    Just make it abit more secure and advanced.. for example:
    PHP Code:
    <?php
    if(isset($_POST['submit'])) {
    $name $_POST['name'];
    $type $_POST['type'];
    $message $_POST['message'];
    if((!
    $name) or (!$type) or (!$message)) {
    echo 
    "You have not filled in the request for properly!";
    include(
    "request.html");
    exit();
    }
    else{
    mail("[email protected]""$type from $name""Habbo Name: $name \n Type: $type \n - Message - \n $message");
    echo 
    "Thank you for sending a message $name and keep tuned in!";
    } else {
    echo 
    "Please use the Request Form to send requests! <a href='request.html'>< Back</a>";
    }
    }
    ?>


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

  9. #9
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by SlicedCheese
    Mentor, you're starting to get on my nerves, all the time you throw bad comments, in your signature it says that you'll tell me how to improve.
    actaly read the post, i asked a question, not throwing bad comments, unless u actaly want to debat that its a basic form handler, wich would be kinda pointless it being a script to handle then send forms to an email, making it one by deffitions "/

    Im asking how useful it would be, would flooding my inbox with 20 emails help me, on a radio, or would u want an altemated page to dispaly all the data on wich i can easly and quicky edit and remove bits from, and see them all at once with catogry sepetions "/

    How am i suggesting you imrpove, by considering whos going to use the appliction and make ing it useful, and with something anyone who glances at the odd tutoral on the net coulnt make in 15 seconds "/
    Or do u think that is useful, do u think that would work, would u yourself use it?

  10. #10
    Join Date
    Dec 2004
    Posts
    121
    Tokens
    0

    Default

    Quote Originally Posted by Mentor
    actaly read the post, i asked a question
    Normally, questions have question marks.
    I've only been coding php for the last couple of months, so before you start throwing all your gibberish at me i suggest saying it in my language, english.

    O and thank you splintercell! hopefully your code will teach me in the future.

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
  •