Mar 22nd, 2016, 3:57 PM
I using Formtools to build a classified ad database. It works great and I'm built a little PHP to connect with the database to pull and print data.
It works great, but I'm finding that any $ in the text are being interpreted as variables, which breaks the price that follows them in the ad, which should read "The boat sells for $5,900" but ends up reading "The boat sells for ,900". This doesn't happen if I escape the $ manually. So, how can I modify my submission form so that $ are escaped?
I would need to do this at two points -- the form I use for the public to enter their own classified ads and also on the admin side of Formtools where I enter classified ads.
It works great, but I'm finding that any $ in the text are being interpreted as variables, which breaks the price that follows them in the ad, which should read "The boat sells for $5,900" but ends up reading "The boat sells for ,900". This doesn't happen if I escape the $ manually. So, how can I modify my submission form so that $ are escaped?
I would need to do this at two points -- the form I use for the public to enter their own classified ads and also on the admin side of Formtools where I enter classified ads.