Html forms and php (hidden input)?

Andrew D

New member
Im working with php and html and am a bit stuck. Im on a php page and want to lead onto another one.
Basically its a registration section where one page leads to the next and so on in a series of 4 or 5 php pages. In the first form a name is given in a text input field called name. On the next page it is entered into a database. And there is another form. I want this form to have a hidden field with the same contents as name in the previous form. so far i have what is below but its not working. Can anyone please show me what it should be?

<input type="hidden" name="name" value='<?php '$_POST[name];' ?>' />
 
Back
Top