Need some PHP HELP!!!! PHP GURUS STEP PLS INSIDE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qxm
    Confirmed User
    • Jul 2006
    • 5970

    #1

    Need some PHP HELP!!!! PHP GURUS STEP PLS INSIDE

    Hi guys!,

    I need some help with PHP (i'm not a php expert, I barely know a few concepts which help me get my stuff going)....... so please don't post BS!

    I'm working on a landing page and I need to pass a variable 2 pages down using PHP, for instance:
    PAGE1:

    //OVKEY is a string that I'll get from a page....

    <?php
    if (is_null($ovkey = $_GET['OVKEY'])) $ovkey='Straight Visit';
    ?>

    //NOW THE LINK WHICH WILL PASS THE Variable 'OVKEY' + the variable 'ad'

    page2.php?id=OVKEY=<?php echo $ovkey; ?>&ad=<?php echo $ad; ?>

    /* This will effectively transfer the variables 'OVKEY' and 'ad' to page2.php now I need page2.php to send these 2 variables plus a third to page3.php , I was thinking of using the same method on page 1 to GET these values such as: */

    $ad = htmlspecialchars($_GET ['ad'];
    $ovkey = htmlspecialchars($_GET['OVKEY']);

    // And then passing it onto the third page like this:

    page3.php?id=additionalvariable=VARIABLE3&OVKEY=<? php echo $ovkey; ?>&ad=<?php echo $ad; ?>
    I'm not quite sure about the way the second page (page2.php) gets the 'ovkey' variable and then sends it to the third page.... if I do it this way will the second page store this value and pass it on through the URL to the third page??? (page3.php)

    ICQ: 266990876
  • Oracle Porn
    Affiliate
    • Oct 2002
    • 24433

    #2
    yes

    congrats to the winners!


    Comment

    • qxm
      Confirmed User
      • Jul 2006
      • 5970

      #3
      Originally posted by Oracle Porn
      yes

      congrats to the winners!
      yes.....wha?, will it work?

      ICQ: 266990876

      Comment

      • maggie2007
        Confirmed User
        • Jan 2007
        • 247

        #4
        use $_SESSION array if pages 1,2,3 at same server or use $_GET if not at one
        it's simple no gurus needed
        MAGGIE AND HER CRAZY DOLLS'S RATIO KICKS ASS!!!

        Comment

        • StuartD
          Sofa King Band
          • Jul 2002
          • 29903

          #5
          ?id=OVKEY=<?php echo $ovkey; ?>

          should be

          ?OVKEY=<?php echo $ovkey; ?>
          This is me on facebook
          This is me on twitter

          Comment

          • qxm
            Confirmed User
            • Jul 2006
            • 5970

            #6
            Originally posted by StuartD
            ?id=OVKEY=<?php echo $ovkey; ?>

            should be

            ?OVKEY=<?php echo $ovkey; ?>
            yeahh.. I realized that 'id' had nothing to do with it after I posted the info.....thanks though

            ICQ: 266990876

            Comment

            • qxm
              Confirmed User
              • Jul 2006
              • 5970

              #7
              Originally posted by maggie2007
              use $_SESSION array if pages 1,2,3 at same server or use $_GET if not at one
              it's simple no gurus needed
              sweet ... I'll give it a go and see what happens...

              ICQ: 266990876

              Comment

              • maggie2007
                Confirmed User
                • Jan 2007
                • 247

                #8
                Originally posted by qxm
                sweet ... I'll give it a go and see what happens...
                test and write here
                MAGGIE AND HER CRAZY DOLLS'S RATIO KICKS ASS!!!

                Comment

                Working...