calling php function from submit button

后端 未结 4 1555
孤街浪徒
孤街浪徒 2021-01-15 08:51

I want to pass the value of input field address to php. So that when i click on submit button it will be store in php.



        
4条回答
  •  走了就别回头了
    2021-01-15 09:28

    You are mixing PHP and JavaScript. If you want a pure PHP solution you could do something like:

    
    
    

    With PHP once the form is submitted you can access form values with $_POST so use $_POST['address'] instead of document.address.value

提交回复
热议问题