Page 1 of 1

asp session variable can be used in a php form?please-urgent

Posted: Thu Nov 14, 2002 10:54 am
by lucius
on the same server there is php and asp. I need to use in a php page, one session variable which is loaded in asp.
imagine the situation: i'm in asp application. I have the session variable loaded. I access the php page by clicking a link. How can I use the asp session variable in the php page (in a form textbox for instance)????

Thank you very much.. I appreciate any help...

Posted: Thu Nov 14, 2002 11:21 am
by MeOnTheW3
<a href="page.php?var=<&= ASPvaribale &>">link</a>


<?php
$aspVariable = $HTTP_GET_VARS['var'];

?>

Posted: Fri Nov 15, 2002 6:32 am
by twigletmac
If you're using PHP 4.1 or greater you can use $_GET instead of $HTTP_GET_VARS.

Mac