loren646 Posted March 25, 2013 Share Posted March 25, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/276126-possible-to-send-information-through-a-link/ Share on other sites More sharing options...
loren646 Posted March 25, 2013 Author Share Posted March 25, 2013 is there a way to do this without adding it to the url? Quote Link to comment https://forums.phpfreaks.com/topic/276126-possible-to-send-information-through-a-link/#findComment-1420936 Share on other sites More sharing options...
mac_gyver Posted March 25, 2013 Share Posted March 25, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/276126-possible-to-send-information-through-a-link/#findComment-1420939 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.