Skip to content

A simple project that demonstrates the basic use of Get Method in PHP.

Notifications You must be signed in to change notification settings

khianvictorycalderon/PHP-Get-Method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

PHP Template with GET Method and Alert

Description

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.

Key Elements:

  1. HTML Form:

    • The form captures user input in a text field.
    • It submits the data using the GET method to the same page.
  2. 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.
  3. JavaScript Alert:

    • A JavaScript alert is generated using PHP echo within the alert() function.

Usage

  • 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.

About

A simple project that demonstrates the basic use of Get Method in PHP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published