|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Quote Problem
hi,
I am getting data from a form and isert that data into DB(MySQL). This data might contain this kind of data ;'"/[]}{><. I am using addslashes() to avoid any error. All is fine till this point. When i retrieve data from DB query gives correct data(if i display in plain html), when i want to show this data in text field to update, data after ' does not show in the text field. what could be the possible problem. |
|
#2
|
|||
|
|||
|
RE: Quote Problem
The problem is that a ' will end the value parameter in HTML. You need to add htmlspecialchars() around the data:
BTW, if this will show backslashes that shouldn't be there, it means that you don't need to use addslashes, because they're done automatically on form submission. |
|
#3
|
|||
|
|||
|
RE: Quote Problem
Thanx xs0.
It workis fine. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Quote Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|