close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form Fields clear when Security Validation fails

Thread began 9/17/2009 9:25 pm by mlfcs303387 | Last modified 9/18/2009 11:17 am by Ray Borduin | 1322 views | 2 replies |

mlfcs303387

Form Fields clear when Security Validation fails

I have a form with the following fields:

Email Address:
Name:

Captcha security

After entering the Email Address and Name, I intentionally entered the Captcha wrong to make sure it did not pass Security Validation. That part worked, but it cleared my Email Address and Name fields.

Is it supposed to work this way? I was thinking is should keep the fields that I entered.

Thanks in advance for any feedback anyone can give.

Mitch

Sign in to reply to this post

anonymous

Mitch,

You need something to keep the form "sticky". You can do this a couple of ways... one if you have the Cookies Toolkit from WebAssist, you could use it to store the entire form in a cookie and then when the body loads, it will fill all values (except password) from the cookie that would have been established.

The other way to do is it with a bit of PHP hand coding. Since when somebody submits a form, it will then get loaded into the POST array with fields of the same name... such as a form element with name "name" become $_POST['name'] so you could check to see if each element is set in the POST array and if it is, you would then populate the original value with the POST value.

Best regards,

Brian

Sign in to reply to this post

Ray BorduinWebAssist

This should be done automatically by formbuilder. If it isn't working, most likely it is a mismatch in the page name.

There is a bug that we change it to all lower case in one spot and not another which can cause this problem regularly when working on pages that include upper case letters. To fix it you can look for instances of the action page in the server behavior and on the rest of the page and make sure they match correctly (case sensitive).

If you want to post the server validation code and one of your form elements I can be more specific about what might need to be updated.

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