Hi,
Another CGI Question from another avid perl programmer:
I have a form in a webpage. The form has a option-select(drop-down) item and a radio button. I also have a
javascript which disables the select element if the radio button is clicked. And also vice-versa (ie. the radio button is disabled if the select element is changed).
The problem is, I do manipulation based on the input the user provides, and if there is any invalid data, i send him back to the previous page.
But, when I go to the previous page, say for example the select option was chosen, the radio button is also enabled, allowing the user to choose it too. Is there a way to maintain the same settings as it were earlier?
Did you ever notice that when you blow in a dog's face, it gets mad at you but when you take him on a car ride,he sticks his head out the window and likes it?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.