HTML form submit to PHP script

前端 未结 6 1273
刺人心
刺人心 2020-12-10 11:51

I am making an HTML form. I want the results to appear in the PHP script.



  • As your form gets more complex, you can a quick check at top of your php script using print_r($_POST);, it'll show what's being submitted an the respective element name.
  • To get the submitted value of the element in question do:

    $website_string = $_POST['website_string'];

提交回复
热议问题