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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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.