Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Basic PHP Website (2018) Adding a Basic Form Working with Post Variables

Amit Kumar
Amit Kumar
1,063 Points

when i sumbit the form and view page source then it says Confirm Form Resubmission ERR_CACHE_MISS why this is happening

<?php $name =$_POST["name"]; $email =$_POST["email"]; $details =$_POST["details"]; echo "$name $email $details" ; ?> //this is my form part <form method ="post" action="process.php">

<table>
<tr>
  <th><label for="name">Name: </label></th>
  <td><input id="name" name="name"</td>

</tr> <tr> <th><label for="email">Email: </label></th> <td><input id="email" name="email"</td> </tr> <tr> <th><label for="details">Suggest Item details: </label></th> <td><textarea id="details" name="details"></textarea></td> </tr>

 </table>
<input type="submit" value="Submit" />
</form>
Dave Schenk
Dave Schenk
256 Points

The only thing I see that might be wrong is the name of the file you're posting to. Is it action="process.php"? It should match the name of the file you're working in (in this case)

1 Answer

Amit Kumar
Amit Kumar
1,063 Points

thanks sir i got it.