#1
  1. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Oct 2003
    Posts
    42
    Rep Power
    16

    Redirecting to a webpage within a form with action tag set to a different webpage


    I am using a form. This has the action tag set to another page. But within this form I am using a button, which when clicked should take me to a different page. How could I do this? Any help is appreciated. Thank You.

    -B
  2. #2
  3. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2926
    very simple:
    Code:
    <input type=submit value="Other Action" onclick="this.form.action='some other action';">
  4. #3
  5. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Oct 2003
    Posts
    42
    Rep Power
    16
    Thank You. I sorted it out.
  6. #4
  7. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Can you please post an example


    Originally Posted by Beelzibub
    Thank You. I sorted it out.
    \

    Hi i am working on a similar form, it would really be helpful if you can post an example or that particular part in your form where you used a certain tag to perform this operation. Thanks in advance.

    Vishali

Similar Threads

  1. Inserting a MSAccess form into an Intranet webpage
    By goels in forum HTML, JavaScript And CSS Help
    Replies: 0
    Last Post: October 5th, 2004, 08:39 AM
  2. change action of form with javascript
    By tr333 in forum HTML, JavaScript And CSS Help
    Replies: 1
    Last Post: August 16th, 2004, 05:20 AM
  3. How to use pull down with form action ?
    By Prayer in forum HTML, JavaScript And CSS Help
    Replies: 3
    Last Post: June 16th, 2004, 09:38 AM
  4. send data from html to asp without form action
    By dyx4e in forum ASP Development
    Replies: 1
    Last Post: November 23rd, 2003, 10:20 AM
  5. More than 1 button in a form with different action
    By Steve Schofield in forum ASP Development
    Replies: 0
    Last Post: November 3rd, 2000, 07:42 PM

IMN logo majestic logo threadwatch logo seochat tools logo