Forum Moderators: coopster
<form action="index.php" method="POST">
First name<input type="text" name="1name" id="1name"/>
Surname<input type="text" name="sname" id="sname"/>
<input type="submit" value="Submit"/>
</form>
then in the Thank you page you can use these inputed values:
<p>Thank you <?PHP echo $_POST["1name"]." ".$_POST["sname"];?> for completing the form.</p>
If someone entered values: Michal in the 1name field and Cibor in the surname field, then the thank you text would be:
Thank you Michal Cibor for completing the form.
The dot in echo allows to combine two strings (one from _POST and one with space in it. " " - this is space string.
Hope this helps
Best regards
Michal Cibor