I've been using:
<?php
if (isset($submit))
{
include('./nextpage.php');
exit;
}
else
{
//stay on this page
}
And, then, my next page, "nextpage.php," all of my posted variables will be available.
But, then, when I tried
<?php
if (isset($submit))
{
header ( "Location: nextpage.php" );
exit;
}
else
{
//stay on this page
}
none of my posted variables are available.
My question is, should I continue with the my first, "include" code? Or, should I use the "header" code, and modify it.
Which is more "elegant/efficient/correct" ???
thanks