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 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Join Date
    Jun 2007
    Location
    My place duh!
    Posts
    136
    Tokens
    0

    Default

    oo it works

  2. #22
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    :S have we gone offtopic or something?


  3. #23
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Erm...

    1) $HTTP_GET_VARS is depreceated. Use $_GET instead.

    2) You don't need to use a switch statement for something that simple. Just display the form, making sure it's been told to go to the same script when it's been submitted, and then at the top of your PHP script, check whether it's been submitted like so:

    PHP Code:
    if(isset($_POST['submit)) { 
    That'll check whether the submit form variable (buttons have POST input too) is there. If it is, you can add the code to process underneath.

    3) Validate your data. I tried sending something through the demo, and I only entered an address. Guess what? It still sent.

    PHP Code:
    if(empty($_POST['name'])) {
    echo 
    'You did not enter a name!';
    }
    else {
    $name $_POST['name'];

    Do that for all the form fields.

  4. #24
    Join Date
    Jan 2007
    Location
    England, Uk, World, Universe,
    Posts
    1,012
    Tokens
    0

    Latest Awards:

    Default

    yeah i know about that, im doin that in next version
    first version was basicaly a 5 min job tbh
    my sig ran away,

Page 3 of 3 FirstFirst 123

Posting Permissions

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