Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Posts
    61

    Unanswered: quick question - php... plz help!

    I've been trying this for 4 hours...
    can't make it work!!!!

    file 1: test1.php

    <form action="test2.php">
    <input type="checkbox" name="CINDY">
    <input type="submit">
    </form>




    files 2: test2.php


    <?php

    if (!isset($_POST['CINDY'])) {
    $showme ='FALSE';
    } else {
    $showme = 'TRUE';
    }
    echo "$showme";

    ?>


    WHY IS THIS NOT WORKING??????????????????????????????????????

  2. #2
    Join Date
    Jan 2004
    Location
    Germany
    Posts
    17
    Define a value that will be set if someone checks the box:

    <input type="checkbox" name="CINDY" value="1">


    And next time please use the PHP forum instead of the MySQL forum for this.

Posting Permissions

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