Forum Moderators: open

Message Too Old, No Replies

Creating content based on the inbound link. Dynamic content script,

dynamic content link, link text

         

marmiteman

2:24 pm on Jul 31, 2007 (gmt 0)

10+ Year Member



Hi
I want to make dynamic content which takes information from the link used to reach the page.

For example, if someone linked to my page with

www.mysite.com/dynamic.php?variable1=tom&variable2=smith&variable3=USA

It would serve up a page looking something like this:

Hello and welcome [Tom] [smith]
God Bless the [USA]

I need a really simple script, it doesnt really need to process anything - only to have some static content and take certain strings of text from the inbound link and use that text in a certain place in the content of the page.

Any information would be greatly appreciated

roldar

5:28 am on Aug 4, 2007 (gmt 0)

10+ Year Member



I think this is more of a scripting question than a database question, but...

echo("Hello and welcome [" . $_GET['variable1']. "] [" . $_GET['variable2'] . "]<br />God Bless the [" . $_GET['variable3'] ."]");