February 16, 200619 yr When I’m entering info into a form field, if I put an apostrophe and then submit changes, it throws in a with the ' It saves the ' in the filemaker field also. This is a problem because the info is printed out in a report. Is there a way to resolve this easily?
February 17, 200619 yr It sounds like your problem is with an extra addslashes() in the PHP. If your PHP installation is set up with magic quotes on, you'll automatically get escape codes in your data. You can test for the status of magic quotes: if (!get_magic_quotes_gpc()) { $yourdata = addslashes($_POST['yourdata']); } else { $yourdata = $_POST['yourdata']; }
February 20, 200619 yr Author That helped me out. Thanks I resolved the issue by disabling magic quotes.
February 21, 200619 yr You can also test if "magic_quotes" is enabled with an if(), then take the appropriate action. Garry
Create an account or sign in to comment