| | |
";:<script><html>< // >@@#";
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
if some users insert data like
";:<script><html>< // >@@#";
then i Sanitize this data to something like
";:<script><html>< // >@@
before inserting to db
when i print this form db to html
for inside <p> tag its cool but for inside h1 tag is prints as it is
<h1>";:<script><html>< // >@@</h1>
output: ";:<script><html>< // >@@
<p>";:<script><html>< // >@@</p>
output: ";:<script><html>< // >@@#";
now i need to corrent on h1 tag to make similar to <p> tag
thanks
";:<script><html>< // >@@#";
then i Sanitize this data to something like
";:<script><html>< // >@@
before inserting to db
when i print this form db to html
for inside <p> tag its cool but for inside h1 tag is prints as it is
<h1>";:<script><html>< // >@@</h1>
output: ";:<script><html>< // >@@
<p>";:<script><html>< // >@@</p>
output: ";:<script><html>< // >@@#";
now i need to corrent on h1 tag to make similar to <p> tag
thanks
Hunters Never Hurt
![]() |
Similar Threads
- "<SCRIPT SRC>" javascript logon help (JavaScript / DHTML / AJAX)
- Removal of "Home Search Assistant", "Search Extender", & "Shopping Wizard" (Viruses, Spyware and other Nasties)
- Removal of "Home Search Assistant", "Search Extender", & "Shopping Wizard" (Viruses, Spyware and other Nasties)
- "cannot resolve symbol"problem (Java)
- When a host says "included scripts" (Networking Hardware Configuration)
- Sorry, another "bridge.dll" problem.. here's my HJT log. (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: stopping a "for" loop
- Next Thread: mysql data type question
| Thread Tools | Search this Thread |
apache api array auto beginner binary broken cache cakephp checkbox class cms code codingproblem cron curl customizableitems database date display dynamic echo email error errorlog file files filter folder form format forms forum function functions gc_maxlifetime global google headmethod href htaccess html image include insert ip javascript joomla limit link login mail malfunctioning memmory memory menu mlm multiple mysql nodes oop parameter parsing paypal pdf php phpmysql popup query question radio random recursion recursiveloop remote script search select server sessions snippet source space sql static survey syntax system table trouble tutorial up-to-date update upload url validator variable video web youtube





