How could I pass checkbox, radiobutton, downdrop box selection to the next page (add_error.html or modify.html)?
You know, you can pass variables, e.g.: <%Description%>, <%URL%>, etc.
But how can be made to pass e.g. a downdrop box selection?
Example:
<select name="select">
<option value="city1">city 1</option>
<option value="city2">city 2</option>
<option value="city3" selected>city 3</option>
<option value="city4">city 4</option>
</select>
It's rather difficult, since the "selected" option can be in any row.
I could imagine a solution like this:
<select name="select">
<option value="city1" <%isselected1%>>city 1</option>
<option value="city2" <%isselected2%>>city 2</option>
<option value="city3" <%isselected3%>>city 3</option>
<option value="city4" <%isselected4%>>city 4</option>
</select>
Links should pass the "selected" value to the <%isselected3%> in the example above,
and the other <%isselected%> variables should contain nothing.
Of course, using checkboxes or radiobuttons, "checked" should be used intead "selected".
I found a thread about Checkbox field in add.cgi, but it's not enough using so many options.
http://www.gossamer-threads.com/...um3/HTML/000993.html
There can be a lot options even 10-20, so a simple if..else couldn't work in site_html_add_form or site_html_add_failure subroutines.
Could anybody help me in this problem?
Thanks in advance,
Webmaster33
[This message has been edited by webmaster33 (edited January 23, 2000).]
You know, you can pass variables, e.g.: <%Description%>, <%URL%>, etc.
But how can be made to pass e.g. a downdrop box selection?
Example:
<select name="select">
<option value="city1">city 1</option>
<option value="city2">city 2</option>
<option value="city3" selected>city 3</option>
<option value="city4">city 4</option>
</select>
It's rather difficult, since the "selected" option can be in any row.
I could imagine a solution like this:
<select name="select">
<option value="city1" <%isselected1%>>city 1</option>
<option value="city2" <%isselected2%>>city 2</option>
<option value="city3" <%isselected3%>>city 3</option>
<option value="city4" <%isselected4%>>city 4</option>
</select>
Links should pass the "selected" value to the <%isselected3%> in the example above,
and the other <%isselected%> variables should contain nothing.
Of course, using checkboxes or radiobuttons, "checked" should be used intead "selected".
I found a thread about Checkbox field in add.cgi, but it's not enough using so many options.
http://www.gossamer-threads.com/...um3/HTML/000993.html
There can be a lot options even 10-20, so a simple if..else couldn't work in site_html_add_form or site_html_add_failure subroutines.
Could anybody help me in this problem?
Thanks in advance,
Webmaster33
[This message has been edited by webmaster33 (edited January 23, 2000).]