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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lucius
Forum Newbie
Posts: 1
Joined: Thu Nov 14, 2002 10:54 am

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

Post 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...
MeOnTheW3
Forum Commoner
Posts: 48
Joined: Wed Nov 13, 2002 3:28 pm
Location: Calgary, AB

Post by MeOnTheW3 »

<a href="page.php?var=<&= ASPvaribale &>">link</a>


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

?>
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you're using PHP 4.1 or greater you can use $_GET instead of $HTTP_GET_VARS.

Mac
Post Reply