close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Form no longer works after adding security

Thread began 3/15/2010 6:03 am by gwh362692 | Last modified 3/22/2010 5:30 pm by gwh362692 | 1756 views | 16 replies


Originally Said By: Jimmy Wu
  To check if the strip slashes is working correctly or not, change the echo to die, so that the value will be printed out and you can check the value. Also run through with the strip slashes not put in to see if there is a difference.  


I changed the line so that it was as follows:

<td><?php die (stripslashes(isset($_POST["Contact_us_group_Comments"]))?$_POST["Contact_us_group_Comments"]:"")?></td>

But I got the following error and the form wouldn't submit at all:

Parse error: syntax error, unexpected T_VARIABLE in /home/site/www/test/WA_Universal_Email/WAUE_contact_1.php on line 65

I also tried:

<td><?php die ((isset($_POST["Contact_us_group_Comments"]))?$_POST["Contact_us_group_Comments"]:"")?></td>

and still got the above error.

When I changed it back to the echo, it submitted but I'm still getting the backslash.

Also when I originally added the stripslashes, when I saved I got the following warning:

''This document contains JavaScript code for a widget that no longer exists. I fyou don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?

Widget: var Contact_us_group_nbsp_Spry = new

The above warning no longer appears now that I've taken the stripslashes out though.

Do you know what's happening or why it's not working?

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





Ease of use


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