Good day!

I have a page let say page1.php and page2.php. In page1.php, I have build menus which names are taken from MySQL database like the code Ive made below:

<ul>
   <?php do { ?>
   <li><a href="fullwidth.html"><?php echo $row_rec_tourismmenu['menuname']; ?></a></li>
   <?php } while ($row_rec_tourismmenu = mysql_fetch_assoc($rec_tourismmenu)); ?>
</ul>

I want to get the menu name in page1.php when the user clicks it and put it on a session variable or something safe so that I can use it on page2.php for query searching..

Thank you for helping

solved with form variables!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.