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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

allows me to insert record on form that has validation

Thread began 12/08/2009 12:10 pm by mr hankey | Last modified 12/08/2009 6:04 pm by Jason Byrnes | 1951 views | 9 replies |

mr hankey

allows me to insert record on form that has validation

hi,

i used the validation clientside and it allows me to insert a record with the fields left blank even though i checked and made sure it did not allow blank entry.

no errors comback, can anyone help?

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

Send a copy of your page please so I can take a look at the code.

Sign in to reply to this post

mr hankey

hi jason,

thanks for that please see attached.

cheers

Sign in to reply to this post

mr hankey

sorry txt file was too large

Attached Files
insert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

At line 139, you have a forward slash character. this is causing a javascript error which causes the client side validation code to fail.


remove the forward slash from line 139.

Sign in to reply to this post

mr hankey

jason you are the man.

thank you so much.not sure how that line appeared as i cant remember doing it but thanks so much.

Sign in to reply to this post

mr hankey

just another question what is difference in using the server validation to client? obviously the client is done on users browser but what is the better option to chose?

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

client side validation is performed in the clients browser using javascript. It can be used to trigger other events such as conditional validation, or to enable or disable another form element. it can also be used to reformat the data is sent.

The drawback to client side validation is that it can be avoided by simply turning off javascript in the browser.


Server side validation is performed through PHP code on the server. This is a much more secure option since there is no way the validation can be avoided.

Server Side validation cannot be used for conditional validation, or for enabling or disabling form elements though.

I always recommend to use Server Validation since it is more secure. If you need the extra functionality offered by client side validation, than you can add that as well, but dont rely on it.

Sign in to reply to this post

mr hankey

thanks jason for your help

Sign in to reply to this post

Jason ByrnesWebAssist

No worries.

Sign in to reply to this post
loading

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