I don't think PHP3 support sessions variables.
but if you want a tricky but working solution to pass variables from page to
page try this:

file1.php
<html>
.....you file is here...
<form name="myform" method="post" action="file2.php">
<input type=hidden name="name" value="foo">
</form>
<script>
  // this will automatically submit and redirect!
  document.myform.submit();
</script>
If you don't want redirection to be automatic, you can link this previous
script with any JavaScript event.

Now in file2.php, you can read as echo $name ....

hope it helps.

""Jacky"" <[EMAIL PROTECTED]> wrote in message
008301c0b7cd$601d8560$[EMAIL PROTECTED]">news:008301c0b7cd$601d8560$[EMAIL PROTECTED]...
Very stupid question, but I have one variable, say $name = "foo"; and I want
that to assign on to session, reditect that to one cgi page and then go to
one html page, and I want to have that session value here at this html page,
see what I mean? I am using php3. How do I set session up at the first page
befoer the redirect happen?
Note, query string is not preferred solution here.
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"




-- 
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