html - PHP - Form handling -


on clicking submit query button, should display information user has entered not happening here. mistake? here html code:

<html>     <body>         <form method="post" action="temp2.php">             name: <input type="text" name="name" ><br>             e-mail: <input type="text" name="e-mail" ><br>             <input type="submit" >         </form>     </body> </html>` 

and temp2.php file:

<html>     <body>         name: <?php echo $_post["name"]; ?><br>         e-mail: <?php echo  $_post["e-mail"]; ?><br>     </body> </html> 

this image of output when submit button clicked.

(now know not going on here)

op:

"i had files in php folder , not in htdocs folder. it's , running now, thank everyone."

having used error reporting have thrown notice file/folder not being found.

something pointed out earlier in comments area.

your best bet when coding check if folder/file exists in first place , inside conditional statement.

and checking if inputs set/not empty:


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -