- Copy and paste the following code into a file called form.php
- Open form.php in a browser and press the Submit button and watch what happens.
Create a new file called process-info-1.php and place it in the same folder as form-1.php. Update the form action in our form to process-info-1.php. Rename form.php to form-1.php. Press the Submit button again.
Important: use localhost/XAMPP server for this exercise. This may not work on other servers.
Expose the security risk. To do this:
<a href="nastysite">A Nasty Site</a>