Can I pass a variable in a Meta Http Equiv Refresh?
<p>I just finished this script it works well, but I am struggling to pass along the $invite variable to the register.php page. Can someone please tell me how I can achieve this? I have it defined as $invite = $_POST['inviteinput']; </p>

<p>How do I get the users input from index.php to transfer to register.php? Thank you for your help!</p>

<p>HTML FORM:</p>

<pre><code>    &lt;form action="index.php" method="post"&gt;
    What is your Invite Code?&lt;BR /&gt;
    &lt;input class="textbox" name="inviteinput" type="text" /&gt;
    &lt;BR /&gt;
    &lt;input type="hidden" name="formsubmitted" value="TRUE" /&gt;
    &lt;input name="Submit" type="submit" value="Verify" /&gt;
    &lt;/form&gt;
</code></pre>

<p>PHP:</p>

<pre><code>&lt;?PHP
include ('scripts/dbconnect.php');

if (isset($_POST['formsubmitted'])) {

if (empty($_POST['inviteinput'])) {
echo '&lt;div class="errormsgempty"&gt;&lt;u&gt;ERROR&lt;/u&gt;:&lt;br&gt;You must enter a valid invite code to proceed!&lt;/div&gt;';
} else {


$invite = $_POST['inviteinput'];//else assign it a variable
$invite = stripslashes($invite);
$invite = mysql_real_escape_string($invite);

$sql = "SELECT yourMemberId FROM Register WHERE yourMemberId='$invite'";
$result = mysql_query($sql);

if(mysql_num_rows($result) &gt; 0) {

echo '&lt;META HTTP-EQUIV="Refresh" Content="0; URL=register.php"&gt;';   
} else { 
echo '&lt;div class="errormsgbox"&gt;&lt;u&gt;ERROR&lt;/u&gt;:&lt;br&gt;The Invite Code you entered ' . $invite . ' is NOT a valid invite code!&lt;/div&gt;';
//($notvalidcode = "The Invite Code you entered &lt;strong&gt;" . $invite . "&lt;/strong&gt; is NOT a valid invite code!");
}
}
}
?&gt;
</code></pre>
