|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
unproccesed html
Hi. I was thinking. Is there not a certain phpfunction that allows me tos pass html-code unproccesed from the db to a textbox. ??
- Pheifel |
|
#2
|
|||
|
|||
|
I don't understand. Can you elaborate a bit? What do you mean by unproccesed?
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
is there a way, that if lets say a user writes in his/her account in a text-field. And uses some html-code. Then it is loaded to the db. And there nothing will happen with the code. but when i fetch it from the db the htmlcode wil be proccesed by the browser thus if the user is good with html. He can alter my page design. I would like to avoid this. By letting the html code the from the userinput be shown instead of proccesed by the browser.
- pheifel |
|
#4
|
|||
|
|||
|
The function you are looking for is 'htmlspecialchars' (http://www.php.net/htmlspecialchars) or 'htmlentities' (http://www.php.net/htmlentities)
|
|
#5
|
|||
|
|||
|
thnx couldn remember the name
|
|
#6
|
|||
|
|||
|
no problem
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > unproccesed html |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|