Forum Moderators: coopster

Message Too Old, No Replies

How to add content by url?

         

badmonkey

5:48 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



Anyone know an easy way to include content on a page by a field in the url? I am assuming this probably easy but I cant figure it out.

What I am trying to do is take a url like:
[domain.com...]
and make "widget" display on my page.

Any help?

jatar_k

5:51 pm on Oct 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



use one of the vars in your $_SERVER [php.net] array to get the path you are currently at

then split it and test it

badmonkey

6:06 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



thanks very helpful