Parse Url And If Contains String Run Html

I need a script that will parse the url of the page visited.
The script needs to be able to be included in an iframe if possible and still work.

I then need it to check to see if the url contains a word or set of numbers. Example: abc123

So test.com?abc123 or test.com?t=abc123

If it contains this, it needs to run a snippet of html.

I need the ability to define several of these, example if URL contained:

abc123
run html 1

abc1234
run html 2

etc

* If using php there needs to be a way to not show .php, is that possible? Can a .html page call the php so that I can call it as an iframe on the page?

Leave a Reply

Your email address will not be published. Required fields are marked *