Hi there,
How are you validating your date? If possible you would be doing this
with client side script, and hence not 'losing' the value of the
radio zone (no CGI call in the event of a invalid date). But in the
event that you have to validate against value(s)in your db, your call
to the CGI program would return the value of the radio zone like any
other variable on your form.
Example
<INPUT TYPE="RADIO" NAME="statut" VALUE="1" >Oui
<INPUT TYPE="RADIO" NAME="statut" VALUE="2" >Non
d statut s 1a
.
.
/free
statut = zhbgetvar('statut');
/end-free
Only other thing to check is that the radio zone is defined within
the HTML form that does the actual call to the CGI program.
Any help?
Andrew
--- In [email protected], "lpt_fr" <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm afraid I'm asking a very basic question but I can't find the
> solution of my problem.
>
> I've got a simple form where I have to type a date and choose an
option
> proposed in a radio zone (3 choices). If I fill this form with a
wrong
> date, I re-display the form with an error message.
> My problem is that I don't know how to recover the previous value
of my
> radio zone. I've tried different ways of getting this value using
> zhbgetvar (even with multi occurences) but couldn't make it work.
>
> Could someone provide me a sample of HTML and RPG source that works?
>
> Thanks.
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/wbFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Easy400Group/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/