Re: Webserver: passing variables w/ radio
Date: 1996/04/27
Message-ID: <3182CA91.167E_at_quest.net>#1/1
Roger Simmons wrote:
>
> I am having difficulty is passing variables to a stored procedure with radiobuttons.
> you will be greatly rewarded, if you figure this one out. :-)
>
> Suppose I have a htp.formRadio statement inside a for loop where "cname" changes on each
> iteration: like:
> loop
> htp.formRadio(tmp_var, ...
> .
> .
> tmp_var := new_val;
> end loop;
>
> the usual way to call this outside of a loop would be to use single quotes like:
> htp.formRadio('tmp_var',
>
> How would I pass the variable to that this works? again I am confused by the '||notation
> that I probably need to use. I have tried almost everything. Is this possible?
>
> The procedure that gets invoked on the receiving end of this FORM has the same
> input parameter(same name) as the tmp_var would.
>
> any help would be appreciated.
A set of radio buttons should all have the same NAME (cname) not different ones, and you should have only 1 IN variable defined in your stored procedure that has the same name as the NAME of the GROUP of radio Buttons which will yield only one VALUE which will be stored in your IN variable. If you want different names, then you need to use CHECKBOXES, and have one variable for each cname.
Vaskin Kissoyan
Quest Interactive Media
Received on Sat Apr 27 1996 - 00:00:00 CEST