Dynamic Jump Menu
I'm looking to create a dynamic jump menu/list menu that will enable me to navigate to a particular record by selecting a value from the list, however the list is dynamically generated from the recordset. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Using Jump Menu
I am using a jump menu to select multiple drop down boxes in a form which are related to the choice you make in the first drop down box. The problem is that the page reloads and everything before this tag is cleared. I want to be able to repost the data. I know that I need to use sessions in my code but I dont know exactly how to use them for this case. Code:
View Replies !
Jump Menu
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)"> <option value="www.site1.com">google</option> <option value="www.site2.com">metu</option> <option value="www.site3.com">mynet</option> <option value="www.site4.com">asa</option> </select> above code ; i want to get the selected value and post as named $url into a php code. How can i call the selected value?
View Replies !
Jump Menu Selected Value
I have a set of 2 menus where the values of the 2nd are dependent on the value selected in the first. Yes, I will (eventually) convert this to a javascript process, but for now I am content reloading the page. I have created a jumpmenu that reloads the page with the state passed in the url (ie. community.php?state=NY). This determines the values displayed in a second (dependent) menu which then lists the counties available for that state. Code:
View Replies !
Header - Jump Menu Does Nothing In IE
I have a php header and php footer that are being called into my content pages. In the php header, I have a jump to menu system. The jump to menu works great in Firefox, however, the jump menu does nothing in IE. Have any of you experienced problems with jump to menues in php headers and whatnot?
View Replies !
Jump Menu Call Page
Is it possible to use a jump menu to call a page within a page? To be clearer. I can place an " include ('whatever.php'); " within my page which is fine. But i would like this include to be a variable set by the options within a jump menu. So when I select from the menu the include will swap from its default to the newly selected one. Am I making sense?
View Replies !
How To Create A Jump-menu Using Dreamweaver?
I have 50 names and links I need to show up alphabetically in a jump-menu. I'm pretty green with php and databases. Is there a quick and easy way to accomplish this? I know how to create a jump-menu using Dreamweaver, but how would I set it to read the text file.
View Replies !
Script That Is A Bit Like A Jump Menu But Without The Pull Down List.
I am looking for a script that is a bit like a jump menu but without the pull down list. I want users to be able to enter a post code (4 digits) and then be redirected to a web page based on that post code as each web page is different per code. the jump menu provided in dreamweaver is almost there but as there are thousands of codes it is impractical to have them drop down.
View Replies !
How I Can Make A List That Acts Like A Html Jump Menu?
how I can make a list that acts like a html jump menu (for a regular list I have to use a "Go" button in order to achieve the desired behaviour and jump menus I cannot use because they work only with links to other pages). For example,I want such a list filled with questions from my db and when I select one I want to see its possible answers; the page stays the same, only its data differs based on the selection. Or you can have a look at such a jump menu on this website, the one with options for geting to various sections of the forum.
View Replies !
How To Have Dynamic Menu
how to have dynamic menu, say one option is selected from the first menu, and that option changes the 2nd menu options. ? yeah i have seen it work in JavaScript, (onchange) but what would the syntax be in php ?
View Replies !
Dynamic Menu CSS
I am trying for a long time now, to find a way of creating a dynamic drop down menu. I have the CSS part ready and working and also I have the first level of the menu working. the problem I have is how can I submit the id from the first level menu in order to make the query and create the second level and so on menu. I am trying to avoid Javascript but I can't see another way at the moment... What I want to achieve is to produce the menu on HOVER if that is not possible on click will be ok as well. Do any of you have an idea ? This is the code I have : ********************************************** <div id="menu"> <ul> <li><h2>Products</h2> <ul> <?php do { ?> <li><a href="?cat_id=<?php echo ($row_product_categories['prod_category_id']); ?>"title="<?php echo strtoupper($row_product_categories['prod_category_name']); ?>"><?php echo ucfirst($row_product_categories['prod_category_name']); ?></a></li> <?php } while ($row_product_categories = mysql_fetch_assoc($rs_product_categories)); ?> <ul> <?php do { ?> <li><a href="index.php?id=<?php echo ($row_products['prod_id']); ?>"title="<?php echo strtoupper($row_products['prod_name']); ?>"><?php echo ucfirst($row_products['prod_name']); ?></a></li> <?php } while ($row_products = mysql_fetch_assoc($rs_products)); ?> </ul> </li> </ul> </li> </ul> </div> **************************************************
View Replies !
Mysql Php Dynamic Menu
I am trying to write a script that will create dynamically a menu from MySQL database. The database table is a product categories table and it has the folowing filed: category_id, parent_category_id, category_name (some other fileds are there as well but these are enough to figure out the logic) I know that I have to store all the product_categories records in a temp array and then some how go through them and store the level of each record in the menu.... If you have done something like that I suppose you know what I mean and I would much appreciate to give me a hint here ... I had a look in the phpLayersMenu from sourceforge but it is really advanced OO code and I cannot understand the logic.... My target is to create a Tree menu with no pre - defined number of records...
View Replies !
Dynamic Navigation Menu
I need to build a dynamic menu that will include certain links depending on what variables are in the URL. This is doable - right? For example: catalog.php?product=widget&color=green Menu would look like: Green Widgets Brand 1 Green Widget Brand 2 Green Widget Brand 3 Green Widget etc. Any help would be greatly appreciated!
View Replies !
Dynamic Select Menu
I am trying to populate a select menu with data from a mysql db. I get the select menu, but no content or errors. The two fields are id and websites. Here is the code:
View Replies !
Dynamic Drop Down Menu
I'm having difficulties displaying the MakeModelID for a row selected from a drop down menu I've populated from a table combining three attributes (Make, Model and Specification - for example Ford Transit LWB 350 HR). What I require is to capture in a variable, such as $MakeModelID, the ID for that record selected. Code:
View Replies !
Dynamic Dropdown Menu
with help from the PHP Gurus here, I have a dynamic menu script: PHP Code: <?php $time = time() + 28800; $time_plus2 = strtotime('+ 6 days'); echo '<select name="select">' while ($time <= $time_plus2) { Â Â Â Â echo '<option value=>' . date('l, F d', $time) . '</option>' Â Â Â Â $time = strtotime(date('Y-m-d', $time) . ' + 1 day'); } echo '</select>' ?> how do I now get the days of the week to link to different pages?
View Replies !
Dynamic Drop Down Menu?
I have a customer table and I wish to be able to dynamically generate a drop down menu, to, for example, select the customer for which operations are to be performed. after I have made the initial select statements, I assume i will then need to use a while loop but this is where I am getting stuck....I am familiar with using while loops for creating tables dynamically but i'm not sure about drop downs. I just wish to show "company name" in the menu. While it be something along the lines of.... while ( $row = mysql_fetch_array ( $sql ) option = $customer_name etc..
View Replies !
Dynamic Menu Problem
i try to make a dynamic menu. my mysql table is like that: menuID menuGroup menuName menuLink Parent ParentQue SubQue in this table menuGroup indicates the group where a submenu bind to a parentmenu. ParentQue and SubQue are the sorting variables. Code:
View Replies !
Dynamic Menu From MySQL
i have a php script that displays three list menu's. each list menu gets its values from a database. from the first list menu is selected, the selected value is then used to query the DB to get another set of list values to the second list menu and so forth to the third. my problem is that how do i achieve this by using list menu(not jump menu) if ajax is a solution, how to achieve that?
View Replies !
Dynamic Menu Generation
I've got a situation, where i'd like to have a selection box of products. The user picks one product, and a menu appears doesn't activate, but it shows some more detail regarding the product, say a car, and the detail is a list of years you could pick. You pick the year and a list of color choices appears, so on and so forth until you either select a choice in which a database query is generated and you get a page or you get a page listing all close parts. I was wondering if this was feasible without clientside javascript, i don't like to rely on client side scripting as not all user's utilize it.
View Replies !
Dynamic Menu Selection
Code: <?php include ("UpLoad/connect.php"); $load_sql = "SELECT Facility,FacilityID FROM tblLocation"; if (isset($_POST['cust'])) { $load_sql .= " WHERE FacilityID='".$_POST['cust']."'"; } $main_query = mssql_query($load_sql); $users = array(); while(($fetch = mssql_fetch_array($main_query)) !== FALSE) { $users[] = $fetch['FacilityID']
View Replies !
Dynamic Drop Down Menu
I'm trying to send emails to different users based on what is selected from a dynamic drop down list. Here is what I have that doesn't work: PHP Code: <?php $to = "me@myemail.com"; $subject = "current email test"; $message = "New RMA FORM FOR $rma"; $id = $_POST['status']; $query = "select id from mytablename where id='$id'"; $result = mysql_query($query); if (mysql_num_rows($result)==1){ Â Â Â Â mail($to, $subject, $message); } ?>
View Replies !
Dynamic Pull-Down Menu
I'm trying to create a dynamic pull-down menu (list of part #'s) where if a user selects a part #, it prints the description to the right of it. How can I do this? I've provided the code I have below and also sample table values. PHP Code: <?php print "<html>"; print "<body>"; print "<form>"; include ("common_vars.php"); mysql_connect("$DB_HOSTNAME1", "$DB_USERNAME1", "$DB_PASSWORD1") or die("Database error!"); mysql_select_db("$DB_NAME1"); // pull-down menu for products print "<select name='product1'>"; $query = "SELECT * FROM category"; $result = mysql_query($query); while ($item = mysql_fetch_array($result)) .........
View Replies !
Creating Dynamic Drop Down Menu
I have a mysql database called Auditions with a table called Sept7. The table has two columns Time and Name. I want to create a dynamic pull down menu and populate it with items pulled from the table based on a query. Code:
View Replies !
Dynamic MySQL Nav Menu Sorting
I have this dynamic menu and I want to change the order of the menu items... I added a column in the database wich has an integer value for ordering the menuitems. But the only way is by hardcoding them into the database. I would like a way to sort them with drag-and-drop or with up/down arrows. Do you think that except PHP & MYsql I will need Javascript as well ? Any ideas how to do that ?
View Replies !
Dynamic Message Board Menu
Here's an issue I've spent the last 8 hours trying to get my head around, I'm pretty sure the answer is simple enough, but I just cannot work it out, any help would be much appreciated...even just a function name or something... I have a very simple message board setup. The browse menu will look end up like below, all dynamically fed from a database, which is currently setup as: [articleID] [articleDate] [articleText] 23 2007-07-18 Lorem ipsum dolor.... The 'articleDate' field is a DATE type, formatted yyyy-mm-dd. All posts should be sorted ascending, latest first. I want nothing to be hard coded, so there could be 2 posts in any month, or 200, or there could be no posts in any year. 2007 June - #1 - #2 August -#1 September -#1 -#2 2008 January -#1 . . . . . So on and so on. So far, I've toyed with array_unique(), as well as multi-dimensional arrays, but I'm really not sure if this is the right approach. I'd post code but I'm not sure there's any point, what I'm really looking to find out is the method to use, rather than code snippets, so if anyone has achieved this, how did you do it? I'm happy as to teach myself whatever I need to know, problem is I don't know what I need to know...
View Replies !
Dynamic Dropdown Menu Glitch
I wrote this code to dynamically generate an array from files on my server and put it into a drop down menu, but the code cannot be inserted on any page anywhere without it cancelling the loading of the rest of the page. Any ideas? Here is the code: PHP Code: <? $the_array = Array(); $handle = opendir('walrus/strips/.'); while (false !== ($file = readdir($handle))) { Â Â Â if ($file != "." && $file != "..") { $file = substr($file, 0, -4); $the_array[] = $file; Â Â Â } } closedir($handle); asort ($the_array); reset ($the_array);.....
View Replies !
Dynamic Site Menu Paths
I created my first PHP dynamic site but have been unable to design the menu stucture such that the nav links remain constant at any level. For example, at the root level when you click on "/page1" the link takes you to the file within the page 1 folder. Since the nav urls are now one level down, clicking on "/page2" will now take you to "/page1/page2" instead of the intended "/page2". Code:
View Replies !
Network Bar, Dynamic, Dropdown Menu
Basically I have a "network bar" that I place on the top of all my sites, which has a dropdown menu box to interlink all my other sites. Basically I would like to really modify this idea out more. Code:
View Replies !
Limit Dynamic Menu Results
Alright, I have this Dreamweaver generated code for a dynamic menu... <select name="cart_fk" id="cart_fk"> <?php do { ?> <option value="<?php echo $row_Recordset1['in_cart_id']?>"><?php echo $row_Recordset1['in_cart_name']?></option> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); $rows = mysql_num_rows($Recordset1); if($rows > 0) { mysql_data_seek($Recordset1, 0); $row_Recordset1 = mysql_fetch_assoc($Recordset1); } ?> </select> Alright. Now, the question is... I only want to have it echo the last 5 most recent results. How do I do that. I would imagine its somewhere in the the area of this area: if($rows > 0) { mysql_data_seek($Recordset1, 0); $row_Recordset1 = mysql_fetch_assoc($Recordset1); }
View Replies !
Dynamic Menu Inside Echo
the echo command is the only thing I can seem to use to display a page. if (isset($_GET['viewid'])) { $viewid = $_GET['viewid']; $query = "SELECT vendor_id, vendor_name, vendor_desc FROM vendors WHERE vendor_id='$viewid'"; $result = mysql_query($query); $row = mysql_fetch_array($result); $vid = $row['vendor_id']; $vname = $row['vendor_name']; $vdesc = $row['vendor_desc'];
View Replies !
Dynamic Menu Bar In A Frame - Controlling Frames In Php?
I have been using in a lot of websites a script that creates a menu bar but avoids that the button to the current page can be clicked. I am rather satisfied with it (although suggestions for better ways of doing things are welcome, the script follows below FYI) No there is a a problem that for a new site (www.orkestbasic.nl/nieuw) the menu with the links has to be placed in a separate frame because the right part of the page must be scrollable. So the check wether a button has to be a link or not cannot be done anymore with checking PHP_SELF as I am used to do. I am thinking of making all the links to something like <a href = "main.php?content=songlist"> then main.php would be a frameset with something like <frame name = "content" src = "<?php echo "$content.php"?>"> In the left frame I could do a similar thing with a small modification to the createlink function (see below) I often use. But I would like to know if there are more elegant suggestions for it. Could not find really good tips on google. Thanks for any help FYI This is the function I have been using until now. function mvwMaakLink($omschrijving, $verwijzing, $separator = "", $aHrefClass = "", $noHrefClass = "") { $locatie = $_SERVER['PHP_SELF']; //link to the current page, no need for clicking on it //echo $locatie; if (strstr($locatie, $omschrijving)) { $beginTag = ""; $slotTag = ""; if ($noHrefClass != "") { $beginTag = "<span class = "$noHrefClass">"; $slotTag = "</span>"; } echo "$beginTag$verwijzing$slotTag"; } else { $beginTag = "<a "; if ($aHrefClass != "") { $beginTag .= "class = "$aHrefClass" "; } $beginTag .= "href = "$omschrijving">"; echo("$beginTag$verwijzing</a>$separator"); } }
View Replies !
Unexpected Order On Dynamic Select Menu
I've got a directory called 'potm' (picture of the month) that contains: 02.jpg 03.jpg 04.jpg I'm dynamically constructing an 'archive' select menu that contains all the available pics. For some reason the select menu reads: April February March I've tried to sort the array, but it made no difference. PHP Code:
View Replies !
Dynamic Display Of Date In Drop Down Menu
I have a drop down menu and would like to set its options dynamically to have the three future dates from current date.How could I achieve it in PHP?Or maybe other languages?The date format is shown in the code.Thanks.... Code: ....
View Replies !
Chain Menu But The Menu Should Be Multiple Select Menu/list
I am looking for codes to be able to do the same thing with multiple select menu/list. PHP codes or javascripts codes are both fine. 1) javascript + php approach: Prefer to be javascripts codes to display the chain menu. I can use the php to get the all three levels menu data from the database, and assign these values to the javascript. 2) php codes only: Or use the pure php codes (the problem is if just using php codes then I have to submit the form to the server every time, when top level menu select changes to create new menu.).
View Replies !
Ordering And Re-ordering My Dynamic Navigation Menu
I am attempting to develop a couple of functions that will allow me organize and re-organize my navigation menu after I edit or add a new page to my website using my CMS. Has anyone successfully done somthing like this before? if so please share your method. What I have below works for the most part, but I am looking to make things work better. * note* Throughout the code you will find the 'title_level' varable and column title, this will hold a number 1 to however many results are in the database and is used to place in order each link/button in the navigation. Code:
View Replies !
[PEAR:QuickForm] Dynamically Change A Dropdown Menu According To Another Menu?
I've been using QuickForm for a few months now and I am now given a new challenge: I've got a search form with a dozen of dropdown menus, the first dropdown menu being "Brand". If you select either Brand A, B, C, D... Z, the second dropdown menu "Model" must be dynamically changed to model AA, AB, AC, AD..., according to the models manufactured by the brand selected in the first box. I've seen that done on quite a few sites, but never found if QuickForm had a quick & clean way of doing that.
View Replies !
Jump Frame?
I want to make a jump frame (i think is the name), when people click in an image or video, appears a frame in the top (or left), but i want to put an id for each video and image. There are a simple and better way, but i don´t know how to do, where we can put only the link and it redirects with the frame in php (out.php) like this one (this is an adult link, not spam, only is an example what i want): Code:
View Replies !
JUMP Out Of The Script
"mysql_connect establishes a connection for the duration of the script that access the db. Once the script has finished executing it closes the connection. The only time you need to close the connection manually is if you jump out of the script for any reason. " http://www.webmasterworld.com/forum88/903.htm What does he mean by jump out? I used header redirection, is this "jump out", but after header redirection, I always added exit;, does it mean that I need to close the connection.
View Replies !
Unable To Jump To Row
I have a tariff which is atm 44 rows with 15 columns of numbers. Now i am trying to pull as individual price from the tariff based on user input: Code:
View Replies !
Unable To Jump Row 0
I am getting the following error: Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 2 in /home/content/i/n/n/**/html/tracker/connect.php on line 35 Here is my coding from line 34 on down. Code:
View Replies !
Site Jump During Submission
1)I'am collecting form data on my server from a HTML form. The next steps Iam trying to figure out is: 2) I want to then go to another site (payment site) 3) then back to my site. 4) extract original data gathered from step 1 I know the simple method would be to go to pay site first then to my site. However I would like my form first! I also do not want to write the data into mysql in step 1. Not until step 4.
View Replies !
Header('Location:') Jump Ignored?
I'm seeing a problem that has me flummoxed. The only thing I can think of is that I'm violating some rule I don't know about. I have some code that does some processing and then does a header('Location: ...) jump to page A on success or falls through to the jump to page B. This is the code: if ( mysql_query( 'LOCK TABLES tableX WRITE', $link ) ) { mysql_query( $q, $link ) ; // store the record $ID = mysql_insert_id( $link ) ; // save the new id if ( mysql_affected_rows($link) == 1 ) { unlock_tables() ; $_SESSION['ErrMsg'] = 'New ID is ' . $ID ; header( 'Location: PageA.php' ) ; $_SESSION['ErrMsg'] .= ' Error: ignored jump' ; } else // the store failed { error handling } } // second chance (for debugging) to do the right thing header( 'Location: PageA.php' ) ; $_SESSION['ErrMsg'] .= ' and it ignored it AGAIN!' ; // and we shouldn't get here at all -- but we do! header( 'Location: PageB.php ) ; Unfortunately, as I know from the telltales I stuff into session, the store works but the interpreter ignores both header calls that would jump to A and finally jumps to B instead. Unless I'm more tired than I'm aware, or more ignorant, this doesn't make sense.
View Replies !
Jump To Section Of Same Page
PHP Group, How can I in PHP, based on a result, move the cursor to a certain location on the page? I want the same result as Anchor tags in HTML. I want to go to a certain section of the same page based on a return result in PHP. What this is for is an order forms page - when a user fills out a section incorrectly, I want the page to display at that location in the form after the user presses a submit button.
View Replies !
Jump Out Of A Multidimensional Array?
trying to get out of an array dynamically. $transport = array('foot', 'bike', 'car', array('test1', 'test2')); i'm in test2( $transport[3][1] ), how do I go into $transport[3]? Is there a function capable of doing this?
View Replies !
Jump To Html Page
I am a php newbe and I am trying to figure out how to simply display an existing html page from my php script. Here is the code I use but I get the normal "output started" errors. $sql = "INSERT INTO author SET firstname='$name1', lastname='$name2', workphone='$workphone', email='$email', loginid='$loginid', password='$password'"; if (@mysql_query($sql)) { header("Location: formSubmit.htm"); <--------HERE
View Replies !
PHP/MySql Jump Script
I have also read in a affiliate forum (quote below)that putting &afsrc=1 at the end of a link will help click through, how might this also be implemented? "Recently, I put the &afsrc=1 on all my links across my largest sites. Damned if sales have not increased by 10-20% since then. (it has been about 2 weeks at about 13000 clicks a day)" <?php $link = mysql_connect ("localhost", "user", "pass"); mysql_select_db ("datebase"); $result = mysql_query ("SELECT link FROM id WHERE number=$locn"); $row = mysql_fetch_array($result); header("Location: " . $row["link"]); mysql_close ($link); ?>
View Replies !
Jump Script And Wordpress
I created a very simple jump script, and then edited a page on my blog so the links use the jump script links. I followed a template, and triple checked all the code, so I am sure that part is right. My question is, where do I put the actual .php file so the links in the jump script actually pick up the code and go where they are supposed to go? I tried a variety of folders (public_html, themes folder, actual theme folder, etc.), but none made the script work. unless I am (quite possibly) missing something else?
View Replies !
|