I have a problem that seems like it should be fairly easy to fix, but I'm currently too tired and scatter-brained to figure it out without help.
I set up some forms last night to help someone input data into a mySQL database. I'm using addslashes() to make sure that apostrophes and quotation marks get inputted correctly. This is all well and fine. However, when they would go back to the edit form later, values with quotation marks within them would get truncated by the browser (because I was using quotes to encapsulate the field data being displayed on the page). I changed those value-end-markers to the special character ` and everything seemed taken care of. Seemed.
Then I found out that the person I made these for uses IE5 on a Mac and apparently, that system combination does not like the ` character being used in such a fashion.
Help? I just need some way at this point to be able to display the data as it is being stored in the database, and for any changes to be saved correctly also. I played around a bit with urlencode/decode and the results weren't quite what I had in mind... (still would cut off after the first ").
Thanks in advance.
I set up some forms last night to help someone input data into a mySQL database. I'm using addslashes() to make sure that apostrophes and quotation marks get inputted correctly. This is all well and fine. However, when they would go back to the edit form later, values with quotation marks within them would get truncated by the browser (because I was using quotes to encapsulate the field data being displayed on the page). I changed those value-end-markers to the special character ` and everything seemed taken care of. Seemed.
Then I found out that the person I made these for uses IE5 on a Mac and apparently, that system combination does not like the ` character being used in such a fashion.
Help? I just need some way at this point to be able to display the data as it is being stored in the database, and for any changes to be saved correctly also. I played around a bit with urlencode/decode and the results weren't quite what I had in mind... (still would cut off after the first ").
Thanks in advance.
