close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Onclick / Onsubmit Radio Buttons

Thread began 6/20/2011 7:15 pm by ryndog427452 | Last modified 7/12/2011 1:04 pm by ryndog427452 | 8545 views | 11 replies

ryndog427452

Additional Issue With Second 'Modify Button'

Button still works great but I have an additional issue that is related. Been searching around the internet without avail, maybe you have some additional suggestions.

So a user clicks on 'submit order' and it disapears. Works good, no double orders. BUT... the user decides (after clicking on 'submit order') that he wants to change it, or edit his contact information. While the form is processing (before the next load page), he presses 'modify order'. This button is here for users to change there information if it is not correct. But when a user clicks on it AFTER the submit button it still proccesses the original order, and allows them to resend the order after they have made changes. Thus 2 orders go through for the customer, and we have to issue refunds.

So enlight of this, my question is, is there a way to additionally hide BOTH the 'submit order' button AND the 'modify information' button at the end of the form, no matter which one they pick?

Here is the code:

<input type="image" alt="Modify information" value="Modify information" src="WA_eCart/Images/Nautica/Btn4_EN_modifyinformation.gif" class="eC_ImageButton" onclick="document.location.href='checkout.php';return false;"/>
<?php if ($totalRows_rszipdestination == 0) { // Show if recordset is empty ?>
<input type="image" name="Submit_order" id="Submit_order" value="Checkout" alt="Submit order" src="WA_eCart/Images/Nautica/Btn4_EN_submitorder.gif" class="eC_ImageButton" onClick="this.style.visibility = 'hidden';" />
<?php } // Show if recordset not empty ?><br /><br />



Any thoughts?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...