That's a fantastic sol. It works, thanks a lot
ILyas
 

-----Original Message-----
From: Shawn K. Hall [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 14, 2004 11:06 AM
To: [EMAIL PROTECTED]
Subject: RE: [ASP] Form submission control


Hi ILyas,

> Is that possible to decide the page when the form is being submitted.

Not client-side using ASP, no. ASP is processed server-side before the
client receives the page. However, you could use client-side javascript to
change the form action attribute.

'// ======================================================== 
'   WARNING: Vaporcode
'            This code was NEVER tested.
'            It was written directly into this email.
'// ======================================================== 

<form id="f" method="post" action="page3.asp"
 
onsubmit="javascript:if(f.chkbutton.checked==true;){f.action='page2.as
p';}">
  <input type="checkbox" name="chkbutton" value="ON"> </form>

'// ======================================================== 

Regards,

Shawn K. Hall
http://ReliableAnswers.com/

'// ========================================================
   "It's not bad sleeping with Einstein."
        -- Lara Flynn Boyle




------------------------ Yahoo! Groups Sponsor --------------------~--> Make
a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links



 







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to