Jump to content

Possible to send information through a link?


loren646

Recommended Posts

  while($row = mysql_fetch_array($result2))
    {
    echo "<tr>";
    echo "<td>" . $row['hotel'] . "</td>";
    echo "<td>" . $row['hotelnum'] . "</td>";
    echo "<td>" . $row['price'] . "</td>";
    echo "<td align='center'>" . $row['bedroom'] . "</td>";
    echo "<td>" . $row['descrip'] . "</td>";
    echo "<td>" . $row['level1'] . "</td>";
    echo "<td>" . $row['level2'] . "</td>";
    echo "<td>" . $row['notes'] . "</td>"; ?>
    <td><A HREF="viewhotelnum.php" onClick="return popup(this, 'notes')">view</A></td> <?php
    echo "</tr>";
    }
  echo "</table>";
  mysql_close();
 

I want to send the $row['prim'] to the link viewhotelnum.php. This way when they click the link the viewhotelnum.php I can display the photos for that particular hotel room.   

the only ways to supply values to a page are - imbedded in the url as hostname, path, or filename information or as $_GET, $_POST, $_FILES, $_COOKIE, or $_SESSION data.

 

since you are generating a list of urls, you would need to pass some unique identifier as part of each url.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.