Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Mar 2008
    Location
    Leuchars, Scotland, UK
    Posts
    51
    Thanks
    19
    Thanked 0 Times in 0 Posts

    onclick submit only submits once (more than one submit button)

    I have created some online software which uses form data to submit to another page.

    The problem is that I have other submit buttons in the same form which submit to different pages (depending on which button is pressed).

    The first submit button works fine but all the others only work once.
    Code:
    <input class="cssbutton" type='submit' value='Button1' onclick="wbform.action='page1.php'; target='mainFrame'; return true;">
    <input class="cssbutton" type='submit' value='Button2' onclick="wbform.action='page2.php'; target='_blank'; return true;">
    
    <input class="cssbutton" type='submit' value='Button3' onclick="wbform.action='page3.php'; target='topFrame'; return true;">
    <input class="cssbutton" type='submit' value='Button4' onclick="wbform.action='page4.php'; target='topFrame'; return true;">
    
    <input class="cssbutton" type='submit' value='Button5' onclick="wbform.action='page5.php'; target='_blank'; return true;">
    <input class="cssbutton" type='submit' value='Button6' onclick="wbform.action='page6.php'; target='_blank'; return true;">
    Any ideas my friends?
    Last edited by Trinity-Links; 09-18-2011 at 03:04 PM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •