Anishgiri
11-20-2010, 12:04 AM
I know how to pass a single value on another page, but I can't get the right syntax on passing two value on another page.
header("location: next.php?room=12");
The code above will work
header("location: next.php?room=12 room2=13");
This will make an error
echo"
<a href="search_display_room2.php?id=' . $row['roomnumber'] . '">'.$room_type.' </a>
"
In the code above it will work, but I am also trying to pass two value on two different variable here, but I can't get it right.
<a href="search_display_room2.php?id=' . $row['roomnumber'] . ' id2= '. $row['roomnumber'] . ' ">'.$room_type.' </a>
The above code will produce an error
header("location: next.php?room=12");
The code above will work
header("location: next.php?room=12 room2=13");
This will make an error
echo"
<a href="search_display_room2.php?id=' . $row['roomnumber'] . '">'.$room_type.' </a>
"
In the code above it will work, but I am also trying to pass two value on two different variable here, but I can't get it right.
<a href="search_display_room2.php?id=' . $row['roomnumber'] . ' id2= '. $row['roomnumber'] . ' ">'.$room_type.' </a>
The above code will produce an error