Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: A form

  1. #11
    Join Date
    Oct 2006
    Location
    Northampton
    Posts
    694
    Tokens
    142

    Default

    Yeah I know, I just wanted to add a competitive edge to the thread ha.
    Good-bye signature, I love <NOT ALLOWED NAME AT ALL> despite the infraction his last name got me.

    Free speech? Not anymore, you gotta' love this forum.

  2. #12
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Done =]

    PHP Code:

    <?php
    /* Form coded by Danny Milner (Luckyrare) */
    if($_POST[Submit]){

    if(
    $_POST[habbo] == NULL || $_POST[forum] == NULL || $_POST[why] == NULL || $_POST[have] == NULL){
    print(
    "Please fill in all the form fully!");
    }
    else{
    print(
    "Thanks for entering, we will get back to you as soon as possible!");

    $habbo strip_tags($_POST[habbo]);
    $forum strip_tags($_POST[forum]);
    $why strip_tags($_POST[why]);
    $have strip_tags($_POST[have]);
    $time strip_tags($_POST[time]);
    $gender strip_tags($_POST[gender]);
    $ip $_SERVER[REMOTE_ADDR];

    $message "
    Habbo Name: 
    $habbo \n
    HHGS Forum Name: 
    $_POST[forum] \n
    Why you want to enter HHGS BB 2007: 
    $why \n
    Have you ever been in something like this before: 
    $have \n
    How much time a week do you go on Habbo:  
    $time \n
    Are you male or female: 
    $gender \n
    IP: 
    $ip 
    "
    ;

    mail("[email protected]""Application for HHGS BB 2007 ",$message);
    }

    }
    else{

    ?>

    <form method="post">
    <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
    <td>Habbo Name: </td>
    <td><input name="habbo" type="text" id="habbo" size="50"></td>
    </tr>
    <tr>
    <td> HHGS Forum Name:</td>
    <td><input name="forum" type="text" id="forum" size="50"></td>
    </tr>
    <tr>
    <td> Why you want to enter HHGS BB 2007:</td>
    <td><textarea name="why" cols="50" id="why"></textarea></td>
    </tr>
    <tr>
    <td> Have you ever been in something like this before:</td>
    <td><textarea name="have" cols="50" id="have"></textarea></td>
    </tr>
    <tr>
    <td> How much time a week do you go on Habbo:</td>
    <td><select name="time" id="time">
    <option value="Less than a hour">Less than an hour</option>
    <option value="1-3 hours">1-3 hours</option>
    <option value="4-6 hours">4-6 hours</option>
    <option value="7-9 hours">7-9 hours</option>
    <option value="10hours+">10hours+</option>
    </select></td>
    </tr>
    <tr>
    <td> Your gender: </td>
    <td><select name="gender" id="gender">
    <option value="Male">Male</option>
    <option value="Female">Female</option>
    </select>
    </td>
    </tr>
    <tr>
    <td><input type="submit" name="Submit" value="Submit"></td>
    </tr>
    </table>
    </form>


    <?php
    }
    ?>
    der.

Page 2 of 2 FirstFirst 12

Posting Permissions

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