I have a website and I would like to give the users an option to load or not load a php chat.
My main page is index.php.
On this page, I have a variable called $location.
For example, if you go to www.mysite.com/index.php?location=home.php
it will load home.php in the middle part of the page.
If you go to mysite.com/index.php?location=about.php
about.php will load in the middle part of the page.
Now, I also have a shout.php page. For now, it loads automaticly in the main page, in an iframe for it.
I would like to change it.
At the place of the chat, I want to only have a link:
Click here to Enable Chat.
And if users click on this link, the chat loads as it's loading now, on the main page. Under the chat, they'll have a link that says:
Disable chat
and if they click, the original page with the Click Here to Enable Chat will appear.
How do I do it?