PHP forms | Sololearn: Learn to code for FREE!


PHP forms

<form action="first.php" method="post"> name,username,email I have one form action which call method POST, if I need one more, how can I realize it? <form action=“second.php” method=“post”> Code,sometext I think calling will be $_POST[“name”] also $_POST[“code”] but how program must understand where info to take?

8/2/2018 9:34:10 AM


5 Answers

New Answer


Each input field should have been assigned different name attribute.


Your form POST has mentioned php file to receive in action attribute.


yes, but how to understand which .php to use? i need fopen or require to call?


10q i think i understand what you mean