|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Hi all,
I'm attempting to achieve a couple of things but I don't know if it's possible. I think the following piece of code will help explain what I'm trying to achieve: <% 'test whether user checked a particular check box when the user clicks the submit button If Request.Form("mycheckbox") = "YES" Then 'I want the forms action to post all form data to THIS_PAGE.HTML Else 'I want the forms action to post all form data to THAT_PAGE.HTML end if %> I hope someone can help me figure this out. thanks |
|
#2
|
|||
|
|||
|
capture the checkbox value and turn your psuedo code into a real logic statement.
if (request.form("mycheckbox") = "yes") then form1.submit() else form2.submit() end if |
|
#3
|
|||
|
|||
|
thanks for the reply victor, but I'm hoping you can clarify for me, part of what you said. I definately got the part about turning pseudo code into a real logic statement
but, if I use:form1.submit() else form2.submit() does this mean I have to use two separte forms ![]() or is it more like... form.submit("http://this.page.html") else form.submit("http://that.page.html") ??? thanks again |
|
#4
|
|||
|
|||
|
You will define two forms on your page.
<FORM NAME=for1m ACTION=www.somepage.com> ... </FORM> <FORM NAME=form2 ACTION=www.someotherpage.com> ... </FORM> Then you will form1.submit() or form2.submit() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > multiple form actions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|