close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Slashes in responses

Thread began 11/05/2009 9:43 am by Joe Lowery | Last modified 11/05/2009 5:25 pm by Joe Lowery | 2887 views | 6 replies |

Joe Lowery

Slashes in responses

How do I remove the escape slashes that appear in the email response whenever an apostrophe is used? For example, if the site visitor writes in the comment field "the necklace's color" the email response returns "the necklace\'s color".

Thanks - Joe

Sign in to reply to this post

Dani Chankhour

It looks like you have your magic_quotes settings turned on. You should turn your magic_quotes setting off.

Otherwise you will need to use the stripslashes function.

function.stripslashes.php

Let me know if you have any other questions.

Sign in to reply to this post

Joe Lowery

Hi Dani,

Where would I place the stripslashes function in the Contact form php files?

Best - Joe

Sign in to reply to this post

Dani Chankhour

Under the Templates folder, there is a contactus.php page. Open the page and replace line 14 with this:

<?php echo(stripslashes(str_replace("\n","<BR />",$pval))); ?>

Sign in to reply to this post

Joe Lowery

I don't have a Templates folder. I do have a contactus.php in the root of the Contact_GMC folder however. Line 14 on that page reads:

$WAFV_Errors .= WAValidateRQ(((isset($_POST["Contact_Name"]))?$_POST["Contact_Name"]:"") . "",true,1);

Is that what you're telling me to replace with

<?php echo(stripslashes(str_replace("\n","<BR />",$pval))); ?>

Best - Joe

Sign in to reply to this post

Dani Chankhour

I'm sorry, the template folder is inside the WA_Universal_Email folder.

The line you will be replacing is:

<?php echo(str_replace("\n","<BR />",$pval)); ?>

Sign in to reply to this post

Joe Lowery

Thanks, Dani.

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