Hi David,

If you know that the first form has been submitted, you could pass the
variables through hidden variables:

<?

if (isset($whatever)) {
    echo "<input type=\"hidden\" name=\"whatever\" value=\"" . $whatever .
"\">";
}

?>

Should work......  And it's often better going through the POST method
rather than the GET method (particularly if you want to restrict the user
from tampering with the variables).

James


"David" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How do you pass a variable that was passed from one form to another form
> and then to PHP_SELF?   The first part works fine: I passed a variable
> from one form to another page with a form using
> blah.php?id=$id&songsinalbum=$songsinalbum    but when someone submits
> the second form the value of $songsinalbum is not passed when using
> PHP_SELF. Do I have to pass to another page? I want to use PHP_SELF
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to