sivanath.nagendran Posted December 1, 2006 Share Posted December 1, 2006 Hi I am newbie to PHP language. Can anyone give me the correct solution for my doubt. In HTML select menu I gave values and Id for each values. Now I need help for, If I select one option in select menu, then I need that corresponding Id for that value to another Page. In first page I had design the select menu, in second page I need the output just print on the another page..... advance thanks to you.BySivanath.N Link to comment https://forums.phpfreaks.com/topic/29168-phphtml-pls-help-me-for-this/ Share on other sites More sharing options...
Philip Posted December 1, 2006 Share Posted December 1, 2006 on the form, make sure you're doing like method="POST" and action="file.php"then, using the name of the option (lets say you called it 'theoption')[code]<?php$variable = $_POST['theoption']; // sets a variable to the value that the form gave itecho $variable; //outputs the variable?>[/code] Link to comment https://forums.phpfreaks.com/topic/29168-phphtml-pls-help-me-for-this/#findComment-133715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.