php - correct way to echo a link with a onclick javascript function -
My question is how can I resize it correctly because the variable in the onclick function returns an undefined error
$ openchat = "john javascript: zero (0) 'onClick =' return chat (". $ Livenaam. ") '& Gt; . $ Livenaam "& lt; / a & gt; & lt; br & gt;"; Echo $ openchat;
I want to use it in a loop to send users a list online for chat
thanks, Richard
Or for increased security:
$ openchat = "& lt; a href = 'javascript: zero (0)' onClick = 'return Chat (\ "" .htmlspecialchars ($ livenaam, ENT_QUOTES). "\") '& Gt; Htmlspecialchars ($ livenaam, ENT_QUOTES) "& lt; / a & gt; & lt; br & gt;";
Comments
Post a Comment