Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2001
    Location
    Kyiv
    Posts
    144

    Quick PHP Question

    Hi,

    I have 2 form fields (checkbox) and if they are both set to 1 I want $pic_select to be set to nothing.

    Is this the right way to do it? It is not working.

    PHP Code:
    elseif($_REQUEST['without_pictures'] == "1" && $_REQUEST['with_pictures'] == "1"
    $pic_select ''; } 

  2. #2
    Join Date
    Mar 2003
    Location
    Sioux Falls, SD
    Posts
    1,282
    You could try something like this:

    PHP Code:

    elseif(!($_GET['without_pictures']) && !($_GET['with_pictures'])) 
    James Cornman
    365 Data Centers - AS19151/AS29838
    Colocation • Network Connectivity • Managed Infrastructure Services

  3. #3
    Edit: crnc got there before me!
    http://www.theextremenetwork.com
    MSN: webmaster@theextremenetwork.com

  4. #4
    Join Date
    Jun 2001
    Location
    Kyiv
    Posts
    144

    Thumbs up

    got it going thanks.

Posting Permissions

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