Help! I am having a problem with the PHP Select/Case statement.
Background. I am trying to create a series of web pages in PHP and HTML to allow users to calculate how much space they require for storage purposes of their household furniture.
I have created a series of web pages in a test environment at http://www.ychdb.co.uk.
The first page ( see http://www.ychdb.co.uk/select_room_type.php ) presents a form to allow you to select a room type using radio buttons. When the SUBMIT button is selected you go to http://www.ychdb.co.uk/go_to_room.php which has a PHP SELECT statement. This is a series of CASE statements which I want to result in the user being transferred to different web-pages. I am trying to use HTML anchor tags and URLs to direct the user to their selected web-page. I can see that the correct value is being POSTed from the original form and that it is being interpreted correctly. However the user is not directed to the new web page. Everything else is working fine.
What am I doing wrong ( or perhaps is there a better way? ) Here is the code that is failing.
Room Selector <?php // The next line shows me what the FORM data is for testing purposes echo '
<title>Go To Room</title>
' . print_r($_POST,true) . ''; $newline = "
"; echo $newline; import_request_variables('p', 'p_'); echo $p_group1.$newline;
//set switch value