1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Make this type of link??? Pretty cool c:::::[]=======>

Discussion in 'Black Hat SEO' started by CoyoteAssassin, Jun 1, 2012.

  1. CoyoteAssassin

    CoyoteAssassin Elite Member

    Joined:
    Jan 3, 2010
    Messages:
    1,862
    Likes Received:
    3,906
    Occupation:
    Full Time IMer
    Location:
    USA
    I've seen companies do it before, but never had a need to.

    Let's assume that I have the following fields for email contacts:
    • First Name = Jack
    • Last Name = Dalton
    • City = Barrow
    • State = AK

    How do I make a link like this?
    Code:
    http://www.domain.com/sample.php?fname=Jack&lname=Dalton&city=Barrow&state=AK
    I will crate the link based on merge fields so it must be able to recognize a space in case I am missing a record.

    Once someone clicks the link, the will be taken to a website that uses the data from the URL to populate the page.

    Such as...


    Attention Jack Dalton:

    Please be advised that all businesses in Barrow, AK are urged to test their heaters monthly. Recent temperatures in the Barrow AK area have been colder than area.

    Get your Barrow AK approved heater from this list.

    Sincerely,

    Barrow Management of Heaters



    As you can see, the page is customized for each person based on the merged fields.

    Any input will be appreciated.

    Thanks!
     
  2. wowhaxor

    wowhaxor Executive VIP Premium Member

    Joined:
    Apr 28, 2007
    Messages:
    2,021
    Likes Received:
    3,353
    Location:
    ?¿?
    Home Page:
    Sounds like you need a whole script to populate a page like that but shouldn't be too complicated at all really if you want the page text to be static and just change the name and location. Before I go into working it out with an example lets see if there's not a script already available (theses days maybe even a WP plugin). Mostly wanted to chime in and say good choice, of location. A to the K yo!
     
    • Thanks Thanks x 2
  3. CoyoteAssassin

    CoyoteAssassin Elite Member

    Joined:
    Jan 3, 2010
    Messages:
    1,862
    Likes Received:
    3,906
    Occupation:
    Full Time IMer
    Location:
    USA
    Thanks for the input. The page itself can be simple HTML with static content. The link to the "heaters" page will take them to my affiliate link which will be the same for everyone.

    Most likely it does exist already but I have no idea what it is called but I'm glad that someone was able to understand what I was asking for.

    PS - I've never been to Barrow, AK but I always look at the weather since it is the coldest populated city in the US.

    Thanks again.
     
  4. criticalmess

    criticalmess Regular Member

    Joined:
    Feb 7, 2009
    Messages:
    237
    Likes Received:
    210
    Hey,

    A very simple solution, you can take this code and easily modify to meet your needs;

    your querystring should look like this:
    Code:
    http://www.domain.com/sample.php?fname=Jack&lname=Dalton&city=Barrow&state=AK
    in sample.php (or whatever landing page you use), have this code (Again, not that elegant but simple to understand and use):

    Code:
    
    <?php
    
    if(isset($_GET['fname']))
        $fname = $_GET['fname'];
    else
        $fname = '';
    
    if(isset($_GET['lname']))
        $lname = $_GET['lname'];
    else
        $lname = '';
    
    if(isset($_GET['city']))
        $city = $_GET['city'];
    else
        $city = '';
    
    if(isset($_GET['state']))
        $state = $_GET['state'];
    else
        $state = '';
    
        
    ?>
    
    
    Attention <?php echo $fname; ?> <?php echo $lname; ?>:
    
    Please be advised that all businesses in <?php echo $city; ?>, <?php echo $state; ?> are urged to test their heaters monthly. Recent temperatures in the Barrow <?php echo $state; ?> area have been colder than area.
    
    Get your <?php echo $city; ?> <?php echo $state; ?> approved heater from this list.
    
    Sincerely,
    
    <?php echo $city; ?> Management of Heaters
    
    
    
    Good luck! Let me know if you need help

    critical
     
    • Thanks Thanks x 2
  5. CoyoteAssassin

    CoyoteAssassin Elite Member

    Joined:
    Jan 3, 2010
    Messages:
    1,862
    Likes Received:
    3,906
    Occupation:
    Full Time IMer
    Location:
    USA
    Awesome!

    I'm not sure if it works since I haven't tested it, but this looks great. +Rep given.

    I guess the email link, on my end, will look like this:
    Code:
    http://www.domain.com/sample.php?fname=[First Name]&lname=[Last Name]&city=[City]&state=[State]
    I should be able to plug that into the URL field so that the browser realizes that whole line is a link and doesn't stop when it hits the first space. I can possible rename 'First Name' to 'FirstName', but if the name missing in my record, will it skip the rest of the data?

    Any issues that you think I may run into?

    Again, this is great.

    Thank you.
     
    • Thanks Thanks x 1
  6. criticalmess

    criticalmess Regular Member

    Joined:
    Feb 7, 2009
    Messages:
    237
    Likes Received:
    210
    missing parameters might cause the page to look weird, so I'd suggest that you modify the '' to 'default', example:

    Code:
    if(isset($_GET['city']))
         $city = $_GET['city'];
     else
         $city = 'default_city';
    other than that, nothing special, I checked this code already

    have a good one

    critical
     
    Last edited: Jun 1, 2012
  7. CoyoteAssassin

    CoyoteAssassin Elite Member

    Joined:
    Jan 3, 2010
    Messages:
    1,862
    Likes Received:
    3,906
    Occupation:
    Full Time IMer
    Location:
    USA
    Good idea. I'm looking forward to using it next week. I'll play around with it tomorrow.
     
  8. partymarty4870

    partymarty4870 Elite Member

    Joined:
    Jul 7, 2010
    Messages:
    2,034
    Likes Received:
    1,690
    Location:
    I come from a land downunder
    c'mon guys - I'm busy enough as it is without you all putting ideas into my head.

    I need to ban myself from BHW for a week I think.
     
  9. proweb

    proweb Regular Member

    Joined:
    Feb 24, 2011
    Messages:
    291
    Likes Received:
    144
    What you want done is pretty much the first thing you learn to do in PHP after the "hello world" tutorials. Go online and search for "php get url variables" and "php if statment" for everything you need to know.
     
  10. CoyoteAssassin

    CoyoteAssassin Elite Member

    Joined:
    Jan 3, 2010
    Messages:
    1,862
    Likes Received:
    3,906
    Occupation:
    Full Time IMer
    Location:
    USA
    I have no interest in learning PHP. I'd prefer to make money and pay someone to do it...