Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password

Programming > Perl Beginners Cgi > Re: Odd select ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 1395 of 1490
Post > Topic >>

Re: Odd select box behaviour - SOLVED

by aneely@[EMAIL PROTECTED] May 3, 2007 at 01:14 PM

aneely@[EMAIL PROTECTED]
 wrote:
> I had a wild thought and changed the select box definition.
> 
> First I dropped the 'selected' attribute. That solved the problem.
> 
> Then I added it back, but as such: selected="selected". That worked too.
> 
> My DOCTYPE is HTML 4.01 Transitional, and I remembered reading about all

> attributes must now have a value, even the ones that didn't normally 
> require one.
> 
> I hope this helps some other programmer save some time.

Don't know what I was thinking when I posted this. It couldn't have
worked.

See my response under 'Odd select box behaviour'.

The *correct* answer is:

'if ($Country ne 'Canada' && $Country ne 'United States')'

not

'if ($Country ne 'Canada' || $Country ne 'United States')'

as pointed out by Shawn Hinchy.

--
 



 2 Posts in Topic:
Odd select box behaviour - SOLVED
aneely@[EMAIL PROTECTED]   2007-05-01 20:32:30 
Re: Odd select box behaviour - SOLVED
aneely@[EMAIL PROTECTED]   2007-05-03 13:14:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 16:22:41 CDT 2008.