close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

quotes in mysql

Thread began 8/07/2011 10:35 am by wbrooks199805 | Last modified 11/13/2013 10:46 am by Jason Byrnes | 4130 views | 13 replies |

wbrooks199805

quotes in mysql

I have a lot of people coming to the website putting in characters like so:

Large Pony Hunter (2', 6"); 2008 USEF Zone 3 Children's Large Pony Hunter - 7th place overall;

As soon as this is posted, it deletes everything after the the 6.
Example: Large Pony Hunter (2', 6

When I remove the ", all the data is there. What can I do to prevent this from happening? The weird thing is, it doesn't happen in every field.
It seems to be okay in the admin area so could it be in the php? I have attached the page.

(Its the last field on the page)

Attached Files
steptwo.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on this page, the data is being stored in a session, can you send a copy of the page that sets the session please.

Sign in to reply to this post

wbrooks199805

Not sure

what you mean by the page that sets the sessions.

Here is the page that sends the sessions to the database. I have this page's sessions going to 4 different pages as hidden values consecutively and then it goes to this last page. However, Its viewed on the 3rd page and not all the info is displayed in that field with the " (inches)

I wrote it out as 2 feet and 6 inches instead of 2' 6" and it posted.

Attached Files
uploads.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

wbrooks199805

Where is old private messages in My Account

Hi, Trying to look this up for reminder of the solution..Have the problem again with the quotes (see above) and can't find the answer.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

wbrooks199805

Got it fixed

You know how the quotes come in weird when they are copied and pasted..So I used html code to add quotes. It wasn't the problem above. thanks Jason!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

wbrooks199805

Not working

I thought I had fixed this problem but its not working. This is done with a form and then it posts to an email with universal email. Instead of 2'6" its posting as (2‘6") I know we had a fix for this but I don't remember what it was.

Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code at line 1:


<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $k => $v) {
$_POST[$k] = stripslashes($v);
}
}
?>
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...