If you call the variables like room_name as an array it's quite easy instead of adding a number. Use fields like this:
PHP Code:
<INPUT TYPE=text NAME=room_name[] SIZE=30>
Notice the [] instead of a number!
Then when you process the variables you simply just do something like this:
PHP Code:
<?
$room_names = $_REQUEST[room_name];
$num_rooms = count ($room_names); // Will return the number of room names entered
for ($i = 0; $i < $num_rooms; $i++;
{
echo '<B>Room '. ($i+1) .': </B>'. $room_names[$i] .'<BR />';
}
?>
If you got 4 rooms this will print something like this:
Quote:
Room 1: Jaddah
Room 2: Jaddah 2
Room 3: Jaddah 3
Room 4: Whatever name you filled in
Hope this helps

/Andreas