close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Failed validation produces unexpected results

Thread began 12/07/2010 5:24 am by Airfox | Last modified 12/09/2010 11:09 am by Airfox | 1292 views | 3 replies


Failed validation produces unexpected results

I’m having a similar problem to showthread.php?t=17413

I have downloaded the two patch files and deleted .dat file, but this had no effect, I’m still getting the problem.

I’m trying to apply form validation, to a user registration form (created with security assistant, as part of an eCart project).
For each field I have set value=’<?php echo((isset($_POST["field-1"]))?$_POST["form_field"]:"") ?>’ this is to save the user re-entering all the data when a validation fails
It’s just not behaving as I expected. I just get empty fields when the validation fails.

To explore further, I have created a simple test page:

<form action="test.php" name="test" id="test" method="post" target="_self">
<input name="field-1" type="text" value="<?php echo((isset($_POST["field-1"]))?$_POST["field-1"]:"") ?>" size="30" />
<input name="field-2" type="text" value="<?php echo((isset($_POST["field-2"]))?$_POST["field-2"]:"") ?>" size="30" />
<input type="submit" />

This works perfectly until I add validation.
Field-1 has no validation, field-2 has ‘required/not-blank’ validation.

The results are:

Null null --> null null (This I expected)
Foo null --> null null (This is not what I hoped for - field-1 should display foo)
Null foo --> null foo (This I expected)
Foo foo --> foo foo (This I expected)

I will attach the test page and the two wa config files, could you take a quick look please?



Attached Files

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





Ease of use


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