Your form with radio buttons:
Code:
<form name="myForm" action="test.php" method="post">
<h4>Enter Max Number of Rooms.</h4>
<input type="radio" name="rooms" value="1" /> : 1 Room<br />
<input type="radio" name="rooms" value="2" /> : 2 Rooms<br />
<input type="submit" value="Submit">
</form>
Calls this php file "test.php":
PHP Code:
<?php
echo $_POST["rooms"];
?>
So if your form is correct [the one I showed you] your php is correct.