Folks, I have a (working) PHP file that begins as follows:Now I realize that, as written, I never reach the switch statement, but that's not my question. My question is this: Can the header redirect be selectively chosen using the switch statement (as I tried to do after line three)? That is, how, if at all, can I (omit the first header and die statements to just) redirect to a selected target page using the switch statement? When I try to implement it using the switch statement, I get a page-unavailable error message.Code:<?php header('Location:http://www.MarainLaw.com/page.php?he...-jersey'); die(); switch ( $here ) { case 'index': header('Location:http://www.MarainLaw.com/page.php?he...-jersey'); die(); break; case 'prostitution-lawyer-nj': header('Location:http://www.marainlaw.com/page.php?here=prostitution'); die(); break; default: header('Location:http://www.MarainLaw.com/page.php?he...-jersey'); die(); . . . }
A.






Bookmarks