coding for a button ?
am 14.11.2007 16:29:04 von paul814
How do I code for a submit button when I have radio buttons and
option group lists?
Do I use If then else?
I have an option group list: lstdepartment
I have radio button group: radReadWrite
and a submit button btnsubmit
So I want to do stuff like this:
If RadRead and lstPress is selected, goto "page2"
If RadRead and lstMailRoom is sele4cted goto "page3" etc. when the
button is pressed
how would I do this? where do I put the code?? what would the code be
for something like this?
Code:
"http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Production Report
height="30" />
What would you like to do?:
span>
Please also select the
department:
Re: coding for a button ?
am 14.11.2007 17:51:41 von lws4art
paul814@excite.com wrote:
> How do I code for a submit button when I have radio buttons and
> option group lists?
>
> Do I use If then else?
>
> I have an option group list: lstdepartment
> I have radio button group: radReadWrite
>
> and a submit button btnsubmit
>
> So I want to do stuff like this:
> If RadRead and lstPress is selected, goto "page2"
> If RadRead and lstMailRoom is sele4cted goto "page3" etc. when the
> button is pressed
>
> how would I do this? where do I put the code?? what would the code be
> for something like this?
You put the code in the receiving server-side script. The PHP, CGI, ASP,
CFM.... whatever language your use that *should* be listes in the form's
ACTION attribute.
>
> Code:
>
>
> "http://
> www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
>
> Production Report
>
>
>
>
> height="30" />
>
> What would you like to do?:
> span>
>
> Please also select the
> department:
>
>
>
>
>
>
>
>
You also have 3 independent forms here. I don't think that is what you
want. Only the name|value pairs within the form that is submitted is
transmitted.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com