brown2005 Posted February 22, 2008 Share Posted February 22, 2008 <form action="" method="post" name="drop">'; ?> <select name="link" style="font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 11px; width:108px" onchange="if (this.options[selectedIndex].value != '') location.href=this.options[selectedIndex].value"> <? echo' <option>Quick Links </option> <option> </option> <option value="index.php?page=home">Home</option> <option> </option> <option value="index.php?page=test">test</option> </select> </form> how can i write all the code above in php please Link to comment https://forums.phpfreaks.com/topic/92516-html-to-php/ Share on other sites More sharing options...
roopurt18 Posted February 22, 2008 Share Posted February 22, 2008 This is the only line that isn't PHP: <select name="link" style="font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 11px; width:108px" onchange="if (this.options[selectedIndex].value != '') location.href=this.options[selectedIndex].value"> I don't see what you gain by including that as part of the PHP, so I have to wonder why you're asking to do this? Link to comment https://forums.phpfreaks.com/topic/92516-html-to-php/#findComment-474037 Share on other sites More sharing options...
brown2005 Posted February 22, 2008 Author Share Posted February 22, 2008 I dont really have anything to gain just find it easier for me to have all my code in php Link to comment https://forums.phpfreaks.com/topic/92516-html-to-php/#findComment-474038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.