william44isme
william44isme

Reputation: 877

Retain PHP form information across pages

I am trying to solve this problem:

Basically, a user fills in a HTML form then submits it. They are then redirected to another page where they fill in another form. Both forms are finally captured by PHP using $_POST. How is it possible to retain the information from the first form across the second form so both are submitted?

Upvotes: 0

Views: 187

Answers (2)

Jasmin Mistry
Jasmin Mistry

Reputation: 1476

Try to use

<input type="hidden" name="something" value="<?php echo "{$_POST['fromoldpage']}";?>"/>

Upvotes: 1

Jonathan Marshall
Jonathan Marshall

Reputation: 121

Echo the fields from the first form into hidden fields on the second:

<input type='hidden' name='name' value='value'>

Upvotes: 2

Related Questions