View Single Post
Old 09-18-2011, 11:33 AM   PM User | #1
Trinity-Links
New Coder

 
Join Date: Mar 2008
Location: Leuchars, Scotland, UK
Posts: 51
Thanks: 19
Thanked 0 Times in 0 Posts
Trinity-Links is an unknown quantity at this point
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 02:04 PM..
Trinity-Links is offline   Reply With Quote