Home > Archive > PERL CGI Beginners > May 2007 > Odd select box behaviour - SOLVED
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Odd select box behaviour - SOLVED
|
|
| aneely@softouch.on.ca 2007-05-02, 9:55 pm |
| 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.
| |
| aneely@softouch.on.ca 2007-05-03, 6:55 pm |
| aneely@softouch.on.ca 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.
--
|
|
|
|
|