This is a simple HTML page that uses PHP and JavaScript. It contains a form that takes user input and sends it through the GET method. If the input is submitted, a JavaScript alert is triggered displaying the user's input.
-
HTML Form:
- The form captures user input in a text field.
- It submits the data using the GET method to the same page.
-
PHP Script:
- It checks if the "ui" parameter is set in the URL.
- If the parameter exists, a JavaScript
alert
is shown with the value entered by the user.
-
JavaScript Alert:
- A JavaScript alert is generated using PHP
echo
within thealert()
function.
- A JavaScript alert is generated using PHP
- Enter a value in the input field.
- Upon clicking "Submit", the page reloads with the value visible in the URL (GET method).
- A JavaScript alert will display the user input.