login
Forgot?
Login with Facebook

Don't have an account? Register one now!

Dynamic Content Based on URL Token

Bids 
15
Avg Bid
N/A
CLOSED
  • Project ID:

    294513
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

I need to create a PHP script to display different snippet of code based on URL token.
So, I provide a URL to another website: http://www.mysite.com/index.php?src=1&group=2&head=12

When someone clicks on that URL (which is coming to my page)
Display:
<div id="content">
<a href="http://www.mysite.com/?head12"><img src="/img/head12.jpg" border="0" alt="head12"></a>

head12 content here
</div>

If http://www.mysite.com/index.php?src=1&group=2&head=10 URL is clicked on:
Display:
<div id="content">
<a href="http://www.mysite.com/?head10"><img src="/img/head10.jpg" border="0" alt="head10"></a>

head10 content here
</div>

I am going to have 22 variables for the URI token. So, this code must be really optimized.

Also, there will be a session cookie that will expire within 20 min. or whatever time I provide.

In a nutshell, based on the URL token I want to serve a different image with different text.

Shouldn't be a hard script. If you can provide example on your own website that would be great. Once accepted I will provide you with FTP info to mysite where you can implement the code.




Skills required:

PHP

Project posted by:

abstractj United States
(11 Reviews)

Last seen:

Public Clarification Board

2 messages

  • zhukaster

    I can provide the soution

    over 3 years ago

  • abstractj

    I forgot to mention it needs an else condition in there. Else display:
    <div id="content">
    <a href="http://www.mysite.com/?default"><img src="/img/default.jpg" border="0" alt="default"></a>
    default
    </div>

    over 3 years ago


If you are the project creator or one of the bidders, please Log In for more options.


Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

All Bids ()