XSS attacks plague beginner programmers and are a significant vulnerability for commercial web hosts & website operators. XSS means “cross-site scripting“. These exploits work on the client side. Often, hackers put some type of JavaScript in content that users submit that allow them to steal the data from a cookie. XSS attacks are pretty difficult [...]
This tutorial demonstrates how to execute an external PHP function by clicking a simple link within HTML. The method uses AJAX so that the page doesn’t refresh and doesn’t require a form submission. 1) Paste the following code into a .js file. For demonstration purposes, we have named it “ajax_click.js”. {code type=html} /* * ajax_click.js [...]