Penny wrote:
> Hi all,
>
> I have a checkout page in my online shopping cart that needs two submit
> buttons that direct to two seperate pages. Whichever button the user clicks,
> the destination page will use much the same values via Request.Form but will
> just do different things with them.
>
> One of the buttons will be a submit button. Can I have two submit buttons or
> even another button in the same form that redirects to a different page than
> the submit button redirects to but also allows the target page to use
> Request.Form to return the previous pages form values?
It is better to let the server determine what to do with the page, in
case JS is disabled.
> Is there a javascript to do this?
<input type="submit" onclick="this.form.action='somePage.php'"
value="somePage">
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly