PHP HTML forms and Post Method Code
PHP html function
With the given PHP HTML Code one can retrieve the form data and display the input on same page.
PHP HTML Code
<FORM METHOD=?POST? ACTION=?index.php?>
<H2>Please Enter your Details?</H2>
<BR><INPUT TYPE=?TEXT? NAME=?Nickname?><BR>
<BR><INPUT TYPE=?TEXT? NAME=?age?><BR>
<BR><INPUT TYPE=?TEXT? NAME=?number?><BR>
<BR><INPUT TYPE=?TEXT? NAME=?emailid?><BR>
<INPUT TYPE=?SUBMIT? name=?Go?>
$Nickname = $_POST[?Nickname?];
echo ?<BR>Nickname: $Nickname?;
This small PHP HTML Code tells you, how to create html forms and display data using PHP Post Method in PHP.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.