Page 4 of 5 FirstFirst 12345 LastLast
Results 31 to 40 of 47
  1. #31
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    @Tom

    enter.php

    PHP Code:
    Riddle Question Here:<br><br>
    <
    form action="name.php" method="post">
    Enter the Answer Here:<br><input type="text" size="30" name="answer"><br><br>
    <
    input type="submit" value="Submit" name="Is it right?"
    </form
    quiz.php

    PHP Code:
    <?php
    $answer 
    $_POST ['answer'];
    if (
    $answer == null){
    echo 
    "You think i am thick enough to let you not answer? No chance mate";
    }elseif(
    $answer == "ANSWERHERE") {
    echo 
    "OMG YOU GOT IT. WD M8.";
    }else{
    echo 
    "Ha you cant even get it noob!";
    }
    ?>

  2. #32
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    I made a few errors on mine, I was messing around with it and posted wrong bits I'm making something new now...

  3. #33
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    nnvvvmm.
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  4. #34
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    Tom use mine :[

  5. #35
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Thommy View Post
    I made a script thing:

    http://team-x-labs.net/test/test.html

    It outputs your name, and if you dont enter a name it says enter a name :p

    What would be the next thing to make?
    I recommend reading some beginner's tutorials for PHP, and then creating some more advanced applications. Oh, and I suggest you use the "htmlentities()" function on data submitted by the user.

    Quote Originally Posted by mynameisoli View Post
    unlink(bg.jpg);
    You need to encapsulate "bg.jpg" within apostrophes or quotation marks, as it's a string.
    Last edited by nets; 06-09-2006 at 07:16 PM.
    kinda quit.

  6. #36
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    That's right. I usually do $filetodelete = 'we.jpg'; unlink("$filetodelete");. You wouldn't need to surround the documents name with quotation marks or apostrophes if it didn't have a dot within it, but of course, it is almost required on every URL.
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  7. #37
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    @Joshua

    OR htmlspecialchars($var)

    :]

    Really he has no need now as it doesnt integrate with any other pages which could cause trouble.

  8. #38
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    A new one, using the same idea: http://team-x-labs.net/test/form1.html

    With an age, and type your name as Sparky. :p

  9. #39
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    Well done:p

  10. #40
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    Go on msn tom,

    i also see your having trouble with: http://team-x-labs.net/test/form.php

    Add a } to the end of script before the ?>

Page 4 of 5 FirstFirst 12345 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
  •