Forum Moderators: coopster

Message Too Old, No Replies

alternative to meta refresh

         

michlcamp

5:54 pm on Jan 9, 2006 (gmt 0)

10+ Year Member



After posting form data to a table I've often used a meta-refresh tag to get to the next page after posting, for example:

[2]echo "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">\n";[/2]

but this doesn't allow me to bring form data (fields)from the last page to the next.

I want to collect form data from form #1, post it to the table, then go to form #2 bringing data in from form # 1.

is there a better way?

MattyMoose

6:09 pm on Jan 9, 2006 (gmt 0)

10+ Year Member



What about using sessions to transport the data?

session_start();

$_SESSION['var1'] = 'field1';

and in the next page reference it with

echo $_SESSION['var1'];