Gossamer Forum
Home : Products : Links 2.0 : Customization :

Passing checkbox values to add_error.html or modify_error.html

Quote Reply
Passing checkbox values to add_error.html or modify_error.html
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).]
Subject Author Views Date
Thread Passing checkbox values to add_error.html or modify_error.html webmaster33 2455 Jan 23, 2000, 4:34 PM
Post Re: Passing checkbox values to add_error.html or modify_error.html
Eliot 2393 Jan 23, 2000, 5:43 PM
Post Re: Passing checkbox values to add_error.html or modify_error.html
webmaster33 2386 Jan 23, 2000, 9:12 PM
Post Re: Passing checkbox values to add_error.html or modify_error.html
webmaster33 2396 Jan 24, 2000, 8:45 AM
Post Re: Passing checkbox values to add_error.html or modify_error.html
Eliot 2395 Jan 24, 2000, 8:52 AM
Post Re: Passing checkbox values to add_error.html or modify_error.html
webmaster33 2396 Jan 24, 2000, 11:03 AM
Post Re: Passing checkbox values to add_error.html or modify_error.html
Eliot 2397 Jan 24, 2000, 1:34 PM
Post Re: Passing checkbox values to add_error.html or modify_error.html
webmaster33 2400 Jan 24, 2000, 3:29 PM
Post Re: Passing checkbox values to add_error.html or modify_error.html
Eliot 2410 Jan 24, 2000, 5:13 PM
Post Re: Passing checkbox values to add_error.html or modify_error.html
webmaster33 2409 Jan 25, 2000, 5:36 AM