close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Problem with apostrohpe's from Word

Thread began 7/15/2018 6:29 am by Nathon Jones Web Design | Last modified 7/16/2018 9:33 am by Nathon Jones Web Design | 243 views | 1 replies

Nathon Jones Web Design

Problem with apostrohpe's from Word

I have server validation set up on this form:
http://www.ballochodee.com/index.php#booking

This directs to http://www.ballochodee.com/thankyou.php for validation.

Client has sent through some screenshots of validation errors in the textarea box which validation is set up for as follows:

$WAFV_Errors .= WAValidateAN(((isset($_POST["formTEXT"]))?$_POST["formTEXT"]:"") . "",true,true,true,true,",.;:'@-+!"£\r\n$%&()?",true,4);



I narrowed it down, after some serious head scratching, to a problem submitting an apostrophe from Word. As you'll see from the above, I already have an apostrophe in my list of allowed characters. However, the apostrophe that's pasted from a text editor, such as Word, is different and causes validation to fail.

So I added...

’



...to the list of allowable characters as follows...

$WAFV_Errors .= WAValidateAN(((isset($_POST["formTEXT"]))?$_POST["formTEXT"]:"") . "",true,true,true,true,",.;:'@-+!"’£\r\n$%&()?",true,4);



...but it's still failing validation? Hope you can help.

Thank you.
NJ

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