Php'rs need help real quick - Will PP you 20 bucks if u help me get this working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BoNgHiTtA
    Confirmed User
    • May 2003
    • 2176

    #1

    Php'rs need help real quick - Will PP you 20 bucks if u help me get this working

    Ok, trying to format a URL:

    &memid=[$_SESSION["rid"]]&email=" +eml;


    When I do this, it doesn't seem to want to pickup rid from our system. Actually I am thinking I have this formatted wrong.

    I know I can use this:

    <?=htmlspecialchars[$_SESSION["rid"]]?>

    But I don't think it works in URLs.

    Any suggestions? Ill pp anyone who can help me get it working 20 bucks for the trouble

    Wanna see how Adult Site Traffic Scammed me? Click Here:
  • onlyreal
    Confirmed User
    • Jun 2001
    • 853

    #2
    you can not use session in url(as php cannot process session in browsers address bar)

    u need to a put like something in to the start of page(page u will go with url)

    if(Session[id]hahahaha"bla"){
    do this
    }

    or u need to put session in to a variable and send this variable in url instead of session


    hahaha ='= (remove ')
    Last edited by onlyreal; 04-05-2005, 12:19 PM.

    Comment

    • BoNgHiTtA
      Confirmed User
      • May 2003
      • 2176

      #3
      K let me try that and see what comes from it. Whats ur Paypal addy if I can get it working

      Wanna see how Adult Site Traffic Scammed me? Click Here:

      Comment

      • onlyreal
        Confirmed User
        • Jun 2001
        • 853

        #4
        [email protected]

        come to my icq 20196017

        i will get it work in a second

        Comment

        • BoNgHiTtA
          Confirmed User
          • May 2003
          • 2176

          #5
          Fantastic job! Thanks again man!!

          Wanna see how Adult Site Traffic Scammed me? Click Here:

          Comment

          • rickholio
            Confirmed User
            • Jan 2004
            • 1914

            #6
            Originally posted by BoNgHiTtA
            Ok, trying to format a URL:

            &memid=[$_SESSION["rid"]]&email=" +eml;


            When I do this, it doesn't seem to want to pickup rid from our system. Actually I am thinking I have this formatted wrong.

            I know I can use this:

            <?=htmlspecialchars[$_SESSION["rid"]]?>

            But I don't think it works in URLs.

            Any suggestions? Ill pp anyone who can help me get it working 20 bucks for the trouble
            Try something like this:
            Code:
            <?
            // Load up params with whatever parameters you need
              $params[rid] = $_SESSION[id];
              $params[email] = $_SESSION[email];
              $params[whatever] = "whatever";
            
            // Convert the params array into a query string
              $parmstring = '';
              foreach($params as $k => $v) {
                if($parmstring!="") $parmstring .= "&";
                $parmstring .= "$k=".urlencode($v);
              }
            ?>
            <A HREF='http://some.url.com/foo.php?<?= $parmstring ?>'>
            HTH.
            ~

            Comment

            Working...