Forum Moderators: coopster
switch ($select) {
case "1":
$URL="http://www.anotherpageonmysite.com";
header ("Location: $URL");
break;
case "2":
// do something else //
break;
However I feel that the redirecting in the header is hurting my google ranking. And reading post in the google forum suggests that redirecting is a bad thing. Is there another way to do this?
I don't think this will adversely affect your page rank apart from removing a possible link to the destination pages.
I understand that a spider cannot crawl through all the possible options in a form element (which is why I have normal links to the pages specific for each database). I was mainly asking if there was another way to redirect without the header script:
$URL="http://www.anotherpageonmysite.com";
header ("Location: $URL");
because of fear that I might be penalized by Google for "spam" like code.