Re: OT-Please bare with me :)

From: Date: Thu, 03 May 2001 17:12:24 +0000
Subject: Re: OT-Please bare with me :)
Groups: php.general 
Request: Send a blank email to php-general+get-51299@lists.php.net to get a copy of this message
In a message dated 03/05/2001 18:07:18 GMT Daylight Time, orther@webintellects.com writes: << Hello, I am making a suite of php tolls that I want to have all incorporated in one management website. What I would like to have is a drop down menu in a frame on the left. A great example of what I want is the left drop down menu on the new Cobalt XTR server admin section. If anyone has a JavaScript or a tutorial how to make a drop down menu please send me a link. Thank you :) Brandon >> Hi not sure if this is exactly what your after but it may do the trick :-) It isn`t perfect coding but it does work so you should be able to model it to what you want. <? if ($loadpage==request_for_quote) { $FormType ="forms/request_for_quote.php3"; }elseif ($loadpage==general_enquiry) { $FormType ="forms/general_enquiry.php3"; }elseif ($loadpage==ask_a_question) { $FormType="forms/ask_a_question.php3"; }elseif (!$loadpage) { $loadpage="request_for_quote"; $FormType="forms/request_for_quote.php3"; } ?> <SCRIPT LANGUAGE="JavaScript"> <!-- function displaypage() { document.forms[0].submit(); } --> </SCRIPT> <SELECT NAME="loadpage" onChange="displaypage()"> <OPTION VALUE="request_for_quote">Request for Quote</OPTION> <OPTION VALUE="ask_a_question">Ask A Question</OPTION></SELECT>

« previous php.general (#51299) next »