PHP5000 Posted October 5 Share Posted October 5 (edited) Hello I have been coding in PHP since at least 15 years ago, but there has been a gap for the last 4 years. Now many things that I had done perfectly well in the past does not work. For example /" which I used hundreds if not thousands of time when passing a string from a form to a database or vice versa no longer works. Example is: \"Your inquiry about our services\" Only the first word (Your) is kept, which is the first word before space. Any idea why? I have spent hours searching online through different forums and tutorials without any results. thanks in advance. Edited October 5 by PHP5000 Quote Link to comment https://forums.phpfreaks.com/topic/324619-escape-quote-does-not-work/ Share on other sites More sharing options...
mac_gyver Posted October 5 Share Posted October 5 this is a symptom of the browser not recognizing quotes around a value attribute in the markup. you would need to post your code and a sample of your data that reproducers the problem for anyone here to be able to help. also, what does the 'view source' in the browser show for the markup? btw - instead of escaping double-quotes inside a php string, you can simply use single-quotes. Quote Link to comment https://forums.phpfreaks.com/topic/324619-escape-quote-does-not-work/#findComment-1636874 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.