Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Posts
    405
    Thanks
    17
    Thanked 2 Times in 2 Posts

    passing 'redirected from' variable?

    I'm trying to work through an idea and figure out how to do it, if its possible.

    What I have is a set of multiple paths to a single page, which in turn has an iframed form.

    URL-1 is from an email, URL-2 is from a postcard, URL-3 is from a banner ad. (all on same domain, i.e.: www.website.com/url-1/ )

    These all redirect to the "campaign" URL. how do I collect that information as a variable - I'd assume its possible, but how (using php or other solution)

    The idea is to then pass this variable to an iframe with javascript
    Last edited by turpentyne; 08-29-2013 at 02:09 PM.

  • #2
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    721
    Thanks
    20
    Thanked 84 Times in 84 Posts
    are the 3 urls pages?

    ie whats after website.com/?

    if its litterally what you have

    create an index.php in each folder www.website.com/url-1/index.php etc
    and have them redirect to campaignurl/?source=url1 etc

    and in the campaign page

    PHP Code:
    <?PHP
    $variable 
    $_GET['source'];
    //script and page

    ?>
    There are 10 types of people on CodingForums,
    Those who understand Binary and those who dont.
    Get Cloud Hosting now from only£59 / month


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •