close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert / update record strips characters

Thread began 10/22/2009 2:35 am by pascal267973 | Last modified 10/22/2009 12:33 pm by Eric Mittman | 903 views | 1 replies |

pascal267973

Insert / update record strips characters

Hi,

When I use the insert / update record function, if a '|' is entered as part of a form value, the '|' and everything after it gets deleted and is not inserted in the database. This only happens when this particular character is present and doesn't happen if I use the insert or update Dreamweaver behaviour.

Do you know what could cause this problem?

Thanks.

Pascal

Sign in to reply to this post

Eric Mittman

I think that this has to do with how the insert and update server behaviors evaluate the values, there is a string that is created of the values that uses this character as the separator. Then these values are transformed into an array like this:

php:
$WA_fieldValues = explode("|", $WA_fieldValuesStr);



Since it is just looking for this vertical bar character it will find the one you add and break the other values.

You should try either replacing the character with the encoded value for it '%7C' or you can try wrapping the php function that does this for you around the value in the insert server behavior like this:

php:
htmlentities(<the value>)
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...