Welcome Guest, Not a member yet? Register   Sign In
Insert html/js in db and edit
#1

HI , sorry for english , hi want to save in my db a code like this :

PHP Code:
var uri 'https://pippo.com' + new String (Math.random()).substring (211);
                            
document.write('<a href="pippo.com" target="_BLANK"><img src="'+uri+'" border=0></a>'); 

This is a js script , hi want treat it like simple text , booth insertion and edit .

To try , i insert directly this code in db but if i echo the code i see a clickable image .

How can i save it as simple text and show as simple text ?
Reply


Messages In This Thread
Insert html/js in db and edit - by pippuccio76 - 01-21-2020, 10:41 AM
RE: Insert html/js in db and edit - by jreklund - 01-21-2020, 11:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB