Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Member mikaelsnavy's Avatar
    Join Date
    Jun 2005
    Location
    Oregon
    Posts
    48
    Member #
    10358
    Hi,
    I was wondering if anyone knows how to transfer session variables from PHP to Perl.
    Thanks,
    Mikael

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Lets say the session var is called foo.

    You could redirect or link to the perl file.

    PHP Code:
    <?php
      header
    ("Location: perl_file.cgi?var=$foo");
    ?>
    or
    PHP Code:
    <?php
      
    echo "<a href=\"perl_file.cgi?var=$foo\">link text</a>";
    ?>
    (Note I referenced $foo and not $_SESSION['foo']).

  4. #3
    Member mikaelsnavy's Avatar
    Join Date
    Jun 2005
    Location
    Oregon
    Posts
    48
    Member #
    10358
    So then in the CGI file the variable would be $foo, right?
    I think I got this stuff but I'm still learning.
    Thanks a lot,
    Mikael


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:43 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com