View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Need help with server validation

Thread began 10/08/2009 9:52 pm by Roxana | Last modified 7/12/2010 3:13 pm by Roxana | 3342 views | 17 replies

Roxana

Not working yet

Hi Jason,

I am not sure I understood you. Here is what I did:

- on the confirmpage I changed the failed redirect from checkout.php to checkout.php?valid=false

- on the checkout page I changed the value for the firstname field
from <?php echo(ValidatedField("confirm","firstname")) ?>
to <?php echo((isset($_GET['valid']))?(ValidatedField("confirm","firstname")):isset($_SESSION['eCartCheckoutForm_firstname'])?$_SESSION['eCartCheckoutForm_firstname']:""); ?>

The result is, that at first when validation fails, the value for firstname gets erased. When all field are filled out correctly, the page is validated, and I use the modify button, I am returned to the checkout page with no value in the firstname field. Then, and this is the odd thing, when validation fails again, the value that I entered the first time in the field firstname is returned. And it doesn't matter if I change the firstname, it always returns the name I entered before the first validation failed. Am I making sense?

In a nutshell, it is not working.

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