How to collect data using php from an HTML form?

后端 未结 4 1455
死守一世寂寞
死守一世寂寞 2021-01-19 12:05

Suppose there is a HTML file that has a form in it , which contains some data , which have been taken input from the user using textarea and checkbox . How do I send this da

4条回答
  •  梦毁少年i
    2021-01-19 12:59

    The action attribute of a form defines the php script (or other script) the form data gets send to. You will be able to get the data using $_GET and $_POST. In the following example the text inputs will get submitted to form_action.php

    First name:
    Last name:

提交回复
热议问题