PHP forms | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

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?

2nd Aug 2018, 9:34 AM
DaVenture
5 Respostas
+ 3
Each input field should have been assigned different name attribute.
2nd Aug 2018, 10:03 AM
CalviÕ²
CalviÕ² - avatar
+ 2
Your form POST has mentioned php file to receive in action attribute.
2nd Aug 2018, 10:33 AM
CalviÕ²
CalviÕ² - avatar
+ 1
yes, but how to understand which .php to use? i need fopen or require to call?
2nd Aug 2018, 10:09 AM
DaVenture
+ 1
10q i think i understand what you mean
2nd Aug 2018, 11:21 AM
DaVenture
+ 1
yes
13th Nov 2020, 9:26 PM
Kaleb
Kaleb - avatar