close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

server side validation issue in IE

Thread began 12/10/2010 11:27 pm by CraigR | Last modified 12/11/2010 12:58 am by CraigR | 867 views | 1 replies |

CraigRBeta Tester

server side validation issue in IE

Not sure if this thread should be in ecart or validation toolkit, but here goes...


I added an additional form to my checkout confirm page to cope with some bespoke shipping calculations.


In order to work effectively, I needed to change the triggers on my page, so that the sending of email and the updating of the database now occur when the submit_order button is pressed, rather than current page submit.


On my confirm page I also have the server validation code for the billing and shipping information, which was triggered by the code


if($_SERVER["REQUEST_METHOD"] == "POST") {


The addition of the new shipping form means that this trigger is no longer appropriate, so I changed the trigger to



if (isset($_POST["Checkout"])) {


so that the server validation would only be triggered if the checkout button from the previous page was posted.


This seems to work in FF and Safari, but in IE, server validation doesn’t happen, and so the customer isn’t required to complete mandatory fields and their address details are missing

Sign in to reply to this post

CraigRBeta Tester

Worked it out.

The problem was that the checkout form button was using an image rather than a button, so the code should have been

if (isset($_POST["Checkout"]) || isset($_POST["Checkout_x"])) {

instead of

if (isset($_POST["Checkout"])) {

IE was (for a change) correct, it should never have worked at all, but as Safari and FF coped with my sloppy code, it took longer to work it out.

Sign in to reply to this post

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...