Results 1 to 4 of 4
Thread: Quick PHP Question
-
08-17-2004, 12:57 PM #1WHT Addict
- 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 = ''; }
-
08-17-2004, 01:00 PM #2Web Hosting Master
- 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
-
08-17-2004, 01:03 PM #3Junior Guru
- Join Date
- May 2003
- Posts
- 186
Edit: crnc got there before me!
http://www.theextremenetwork.com
MSN: webmaster@theextremenetwork.com
-
08-17-2004, 01:04 PM #4WHT Addict
- Join Date
- Jun 2001
- Location
- Kyiv
- Posts
- 144
got it going thanks.