Submit a form using an image (slight twist)
Posted: Tue Sep 14, 2004 8:19 pm
Hi,
I'm writing a page with a form that submits to a page on another website (the UPS order tracker).
There are two ways to submit the single form. One is just the standard submit action and the other is with <input type="image".....
Each method of submitting gives a different output. [Using the image gives a detailed status, and a standard submit gives a sumary].
I need to add an action that submits the form using the image and not the default "Submit" button to send the form data since I want a page that repeats, at set intervals, the form submission to update the status.
I have no idea what the server side asp code looks like I just know that both actions give different outputs.
If i use onLoad="document.formName.submit()" as an example, the form submits ok but not the way it would if I had clicked the image (ie. I only get the summary - not the detailed status).
How do I make it submit through an event handler using the image method?
I'd post the code but there's no need... it's a just short form with <input type="image" src="image.jpg" name="myimage">, nothing more.
Thanks
I'm writing a page with a form that submits to a page on another website (the UPS order tracker).
There are two ways to submit the single form. One is just the standard submit action and the other is with <input type="image".....
Each method of submitting gives a different output. [Using the image gives a detailed status, and a standard submit gives a sumary].
I need to add an action that submits the form using the image and not the default "Submit" button to send the form data since I want a page that repeats, at set intervals, the form submission to update the status.
I have no idea what the server side asp code looks like I just know that both actions give different outputs.
If i use onLoad="document.formName.submit()" as an example, the form submits ok but not the way it would if I had clicked the image (ie. I only get the summary - not the detailed status).
How do I make it submit through an event handler using the image method?
I'd post the code but there's no need... it's a just short form with <input type="image" src="image.jpg" name="myimage">, nothing more.
Thanks