Giter Site home page Giter Site logo

prabhsingh13 / get-post-methods Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

This project demonstrates the use of PHP with both GET and POST methods in a simple HTML form.

Home Page: https://prabhsingh13.github.io/GET-POST-Methods/

Hack 18.75% PHP 81.25%

get-post-methods's Introduction

GET-POST-Methods

This project demonstrates the use of PHP with both GET and POST methods in a simple HTML form.

Description

The project includes a basic HTML form that allows users to enter their name and select the HTTP method (GET or POST). The form dynamically updates its action and method attributes based on the selected method.

Usage

To run this PHP project locally, you can use a local server environment. Follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/GET-POST-Methods.git
  2. Navigate to the project directory:

    cd GET-POST-Methods
  3. Start a local server. You can use PHP's built-in server for this:

    php -S localhost:8000

    This command starts a local server on http://localhost:8000.

  4. Access the project in your web browser:

    Open your preferred web browser and go to http://localhost:8000/index.php.

  5. Use the form:

    • Enter your name.
    • Select the desired method (GET or POST).
    • Click the "Submit" button to see the form in action.
  6. Stop the local server:

    When you're done testing the project, stop the local server by pressing Ctrl+C in the terminal where the server is running.

Feel free to adjust the instructions based on your project structure or any specific requirements. This assumes you have PHP installed on your local machine. If not, you'll need to install PHP first.

get-post-methods's People

Contributors

prabhsingh13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.