I have a simple bimple function which echoes this:
echo '<button name="wooba" onclick="alert(this.name)">Say name</button>'
This just works fine, but If a user edits the HTML using a Chrome or Firefox, he can modify the code to output something like:
echo '<button name="wooba" onclick="alert('XSS :D')">Say name</button>'
I have set the only http on the php ini relating the cookies, but is there any way to prevent the user from modifying and successfully changing the site's javascript?
Thanks!