|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
submitting forms
Hi peeps, first post and all!
I have been making a web app for the company, and I have run into a bit of bother with it. I have an asp page with a form on it, the corm contains some list boxes that populate depending on a previous listbox choice. for example, list box 1 is populated from a database, and user makes a chooice, form is submitted to it's self, and listbox 2 is populated from database, dependant on coice in listbox 1. fair enough, that works a treat. but to get this working I have used the <form action = "this_page.asp" > tag, and in the first listbox, I use <select name="F_12025" size="1" id="F_12025" onchange="products.submit()"> my problem is as follows, at a certain point, the user has completed the form and must click the submit button, to sent the form to a thirdparty dll. I cannot find a way to submit the form to a different page than is speccified in the form tag, (in this case not a page, but a dll, but what's in a name eh?) any suggestions more than welcome. Dave. |
|
#2
|
|||
|
|||
|
if this is an asp page then you can just change what the form submits to. when you need to generate the page for the last time and the user is suppose to click submit, generate the page with the different action.
|
|
#3
|
|||
|
|||
|
nopoints, I will now hang my head in shame, and give it a shot.
Thanks for that! |
|
#4
|
||||
|
||||
|
Quote:
That should work fine if you know when the person should submit the form. If the user are allowed to submit the form at any time (even if they havn't clicked everywhere they should) try the following: Code:
<input type='submit' value='Submit Form' onclick='frm.action="test.asp";'> Where 'frm' is the name of your form. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > submitting forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|