0

How can I submit my HTML forms data to a file using the POST method with php I need the PHP Codes on how to access it from file

Web

9th Sep 2020, 12:25 PM
David Osei
David Osei - avatar
2 Answers
+ 2
No one will code for you, show us your attempt instead and then we can together fix it. https://www.sololearn.com/discuss/1043678/?ref=app
9th Sep 2020, 12:40 PM
minirkk
minirkk - avatar
0
Make sure you have a form in HTML with method POST. <form method="post" action="handle.php"> <input name="no_of_items"> </form> In your PHP, you can read the sent request from the $_POST superglobal. $_POST is an associative array that contains the request body using the name attribute as their key. In handle.php <?php $noOfItems = $_POST['no_of_items']; echo($noOfItems); https://www.sololearn.com/learn/PHP/1840/ https://www.sololearn.com/learn/PHP/1841/
9th Sep 2020, 12:47 PM
Ore
Ore - avatar