please help me with this coding problem
Posted: Mon Jun 14, 2010 3:07 am
Well, first of all, let me tell that I am a newbie on php and that's why, I believe, I am getting this problem.
Now, let me tell my problem. Actually, I have a website for creating which I firstly created an index page(with header, navigation bar and footer). Then, I put individual pages as separate PHPs. So, what basically I've done is put a link like "?bas=feedback" which trigers a function on the index page("index.php") for the following task:
So, this is how my site goes on. So, every single page(like "feedback.php") contains nothing more than a form, I mean, that is without any header, navigation & footer. This is not a problem because every visitor will get that page through the index page having the link "www.mysite.com/?bas=feedback" and so, everything(header,.....) is included over there not bringing any problem.
But, here comes my problem.
When Google has indexed my site, multiple pages have been indexed (not just index.php) and one of the index is just,
"www.globalcollegiate.edu.np/general.php"
And so, if someone opens that page from google, then the page will display that boring feedback form without any header, navigation bar and footer. This is my problem.
Hoping to receive any sort of help!
Now, let me tell my problem. Actually, I have a website for creating which I firstly created an index page(with header, navigation bar and footer). Then, I put individual pages as separate PHPs. So, what basically I've done is put a link like "?bas=feedback" which trigers a function on the index page("index.php") for the following task:
Code: Select all
$basket = $_GET ['bas']
function samlagna ($basket) {
switch ($basket) {
case 'home':
include ('home.php');
break;
case 'feedback':
include ('feedback.php');
break;
}
}
But, here comes my problem.
When Google has indexed my site, multiple pages have been indexed (not just index.php) and one of the index is just,
"www.globalcollegiate.edu.np/general.php"
And so, if someone opens that page from google, then the page will display that boring feedback form without any header, navigation bar and footer. This is my problem.
Hoping to receive any sort of help!