Dropdown Menu Updates
I have seen this on lot of sites, where say you goto a car site, and you click the make of the car from a drop down menu, and than after u click it, it will load up the appropriate models for that make.
View Complete Forum Thread with Replies
Related Forum Messages:
[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 !
Dropdown Menu
i seem to be having some problems on finding how this ajax drop down menu i seen at Anime-Eden.com. it has a nice effect on how it appears. Now i am familar on how PLAIN drop down menu works, but not how this works.
View Replies !
Use A Dropdown Menu
I have a list of contacts which are sorted by name. I was hoping to create a dropdown menu in which someone can sort the list of contacts by office, city, state, and contact type. Is this possible? (I am sure it is, but I am not sure what the concept is called so I may research how to do it).
View Replies !
Advanced Dropdown Menu
I want to populate a dropdown menu with countries that are in one column of my table. I know how to do that, but I can't find how to eliminate multiple items. Some countries appear several times in different rows, but I only want each available country to be shown once in my dropdown list.
View Replies !
Mysql / Dropdown Menu
what i am trying to do is to make a system with a few input pages and edit and read pages.. so right now i got the input/edit/read pages working. (yay) But now I want to have on 1 input page a dropdown menu that reads its information from the database. and that if i go to the page i can select a value out of the db and submit that inside my form and that it reminds the value if i view or edit the page. So what i got now is a little system that is able to add/remove/edit a value inside a field called "drop01" Well now i got a other input page called "input01.php" inside this script i want to have the dropdown menu that reads its values from the "drop01" field. PHP Code:
View Replies !
Autoselecting A Value In A Dropdown Menu
I'm revamping my sites administration panel and I put in a dropdown menu to select the section to administrate (it was a LOT better than the list of links I had before, I'll probably update it some more though) and I want to know how I can autoselect whatever page I'm on in the dropdown menu, for example, here's the menu: 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 !
Populating Dropdown Menu From Db
Okay, I am trying to populate a drop down menu with items from a table in my db. I have a table called "teacher" which has the following info: I use the following code to grab the info from the teacher table. Code:
View Replies !
2 Questions. Dropdown Menu And # Of Rows.
1. I have a table named pics and a column named name, just to let you know for use. I want to take the data from each row in the name column and insert it into a dropdown menu. I know how I could do it, but I would have to go: Code: <SELECT NAME="name" SIZE="1"> <OPTION SELECTED><?php $name[10 ?> <OPTION><?php $name[1] ?> <OPTION><?php $name[2] ?> <OPTION><?php $name[3] ?> <OPTION><?php $name[4] ?> <OPTION><?php $name[5] ?> <OPTION><?php $name[6] ?> </SELECT> but then I could make too many or too less. I want it to automatically adjust to the number of rows. 2.What is the code needed to find out how many rows are in a table?
View Replies !
Unwanted URLs In URL Dropdown Menu
I'm working on a PHP script and it has a user login, and the variables (username, password, id number) are passed via the URL bar. Is it possible to somehow not allow the visited page show up in the dropdown list of URLs in the browser? The problem is that people can view the list and easily see people's usernames and passwords. Example: http://www.somesite.com?username=john&password=12345 What I only want is: http://www.somesite.com/ I know that Hotmail.com doesn't show all of the pages that have been visited, all it shows in the list is hotmail.com, so I think it is possible to do this, but I don't know how.
View Replies !
Make A Dropdown-menu Filter?
I have a dropdown menu which is supposed to filter a table to show results for professionals, students or all. But I don't really know what I'm doing. This is what I have so far. Code: Initially, I was able to filter for students or professionals, but since trying to have an all option (students and professionals) it has gone to pot, and I keep getting errors. I know that my quotation marks are not right, but I can't think of a solution. I would be more than happy to see any ideas, even if they are completely different to mine!
View Replies !
Dropdown Menu <selected Name="...
I have a dropdown menu like this one: <select name="country" tabindex="6" id="select_country"> <option value="">- Country List -</option> <?php $query = "SELECT * FROM country ORDER BY country ASC"; $result = mysql_query($query) or die('Error, query failed'); while ($row = mysql_fetch_array ($result)) { $country = $row['country']; ?> <option value="<?php echo $country ?>"><?php echo $country ?></option> After I have selected one country and I hit the submit button it go back to the default value in the box, what I want is to show the selected value in box until I selected another value. If the default value is Australia when I start this page, I then select USA and hit the submit button it reset to the default value "Australia", but I want it to show USA as long I not select anything else. I have tried to use session in selected="<?php echo $_SESSION['country']; ?>" but it didnt work.
View Replies !
Trying To Create Dropdown Menu From List
I am trying to create a dynamic dropdown select menu from a directory containing other directories and files. This is to select a certain page from the list so I can edit it. I only want the files in the menu. Here's what I have so far but it doesn't populate the dropdown. Code:
View Replies !
Selecting Item In Dropdown Menu
Im having problems trying to select a specific option in the drop down menu which has been populated with a list pulled from the 'category' table in the db. The option that needs to be selected is pulled from an id in a 'item' table, relating to the aformentioned category table.
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 !
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 !
Tree View Dropdown Menu
I have such a categories MySQL table: ID | name | parent and have such a function that displays the categories in a SELECT element as a drop-down menu: function DD_ProjectCategories($parent=0) { include("db.php"); $query = "SELECT ID,name FROM categories"; $result = mysql_query($query) or die(mysql_error()); echo '<select name="parentcategory">' echo '<option value="">Choose a parent category</option>' echo '<option value="0">Root Category</option>' while ($row = mysql_fetch_array($result)) { echo "<option value="$row[0]""; if ($parent == $row[0]) {echo " selected"; } echo ">$row[1]</option>"; } echo "</select>"; unset($query,$result,$row); }.....
View Replies !
How To Pass The Value Of Selected Dropdown Menu To Another File?
there is a php-myql script that list the mysql databases in the drop-down menu, use wil select one and the submit button should pass the value or variable $db_name to the test.php, this script list the databases in the drop-down menu but when i select one and then click on submit cannot pass the db_name to the test.php:
View Replies !
Stuck On Dropdown Menu List, Could Use Some Guidence
I have a form with some drop down list/menus. I do a check for ommissions and if found display a message to re-try. What I need is a way to show which options where chosen when the user submitted the form the first time. If someone could show me how to do the first one, I'm sure it's the same process for the second one. Here's the code:
View Replies !
Duplicates In A Dropdown Menu Populated From My Database
I've been searching to figure out how not to have duplicates in a dropdown menu populated from my database. This is what I have, but how do I change it to get rid of duplicates. <?php $result = mysql_query("SELECT City FROM residential order by City"); echo "<select MULTIPLE NAME="City_code">"; while($row = mysql_fetch_array($result)){ echo "<option name="City" value="$row[City]">$row[City]</option>"; } ?> </select>
View Replies !
Pagination And Dropdown Menu Used In Searching Mysql
I am working on building a database made for searching. I have a text search and a dropdown box used for searching different table collumns (lets people search for certan criteria). I have that working correctly. I also only want to show 25 results per page. I have that working correctly. My problem is that when I combine the two it breaks the code. The pagination works fine without the dropdown and vice versa. I think it is due to the variable that is being used to choose the collumn in the sql query. Code:
View Replies !
Choose From A Dropdown Menu Of Encryption/decryption Cyphers
I've written a php page which allows users to type in a text string and a key, then choose from a dropdown menu of encryption/decryption cyphers, and a method (encrypt, decrypt). The whole thing works, except the mcrypt command doesn't work. here is my mcrypt command: if ($method == 0) { //Encrypt $output = mcrypt_ecb ($algorithm, $key, $input, MCRYPT_ENCRYPT); } else { //Decrypt $output = mcrypt_ecb ($algorithm, $key, $input, MCRYPT_DECRYPT); } Here's a list of what the variables may be: $algorithm = MCRYPT_3DES $key = "plain text" $input = "more plain text"
View Replies !
Populating "Month" Dropdown Menu
I can get the current month to display in a text box by inserting value="<? print strftime("%B"); ?>"> into the code for that particular text box on a form but how can I populate a drop down with names of all the months with the current one being 'default' as it would be in the text box example?
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 !
Dynamic Dropdown And Hardcode Dropdown In Select Form
I have plenty of examples of dynamic dropdown choices but none of hardcoded dropdown choices. The ultimate goal is to have a job with various tasks and to track the status of those tasks for a given job. I've used one of the tutorials here to begin the process. Below is the code I have to add work on a given task. Perhaps I actually need to "Update" a job as opposed to "add". But the problem of the moment is I can't seem to hardcode one set of my options. This is the code I have: PHP Code:
View Replies !
Collapsing Menu - Code A Menu For A Webpage
I am trying to code a menu for a webpage, the menu is broken up to groups i.e: Home Group1 Â*menuitem1 Â*menuitem2 Â*menuitem3 Group2 Â*Â*menuitem1 Â*Â*menuitem2 Â*menuitem3 And so on. What I want to achieve is that the groups are shown in a collapsed state depending on the page which is currently being displayed i.e so it starts out like this Code:
View Replies !
Child Menu Name Changes When Parent Menu Changes
THIS IS FOR A SEARCH RECORDS IN A DATABASE TO MATCH SELECTED CRITERIA OF A DYNAMIC OPTIONS LIST I have a set-up whereby the <select name=" "> of the List determines which field of the datbase is searched. I've create a dynamic drop down menu whereby the Parent menu changes the values of the child menu - that works fine. Code:
View Replies !
Multiple Updates
I'm very new to most things beyond "beginner level" and am trying to make the updating of my site easier. I have a stats database and a players database that I am pulling this info from. What I would like is to do multiple updates from this one form. Here's the form: <form name="updatestats" method="post" action="testupdate.php"> <table> <tr> <td><b>Name</b></td> <td><b>GP</b></td> <td><b>G</b></td> <td><b>A</b></td> <td><b>Pts</b></td> </tr> <?php do {?> <tr> <td><?php echo $row_stats['firstname'] . " " . $row_stats['lastname'];?> <input type="hidden" name="id" value="<?php echo $row_stats['playerid'];?>"> </td> <td><input name="gp" size="1" value="<?php echo $row_stats['gp'];?>"></td> <td><input name="goals" size="1" value="<?php echo $row_stats['goals'];?>"></td> <td><input name="assists" size="1" value="<?php echo $row_stats['assists'];?>"></td> <td><input name="pts" size="1" value="<?php echo $row_stats['pts'];?>"></td> </tr> <?php } while ($row_stats = mysql_fetch_assoc($stats));?> </table> <input type="submit" value="Submit"> </form> I would like some clarification on how to us the update function for my testupdate.php page. I can display all info in the above form but I can't update it.
View Replies !
Script Only Updates Once
I have a script that allows users to make changes to their entries---mainly for spelling errors. When you make a change to one of the entries, it changes and updates the db correctly. If you want to make any future changes, without loggin out, the changes do not take effect. The user has to log out and back in, then they can make one change and have to repeat the process for multiple changes. Obviously that is a pain in the rare. The point of the scripts was to allow the user to update as many times as they wanted during the same session.
View Replies !
Still Cannot Get Mysql Updates Done
I still cannot get my mysql database to update the way I need it to. I still need each line to be changed to something different but all I get is the same thing on every line. Heres what I got now: PHP Code:
View Replies !
Getting Database Updates
I have a particular page that first updates my database, then reads from the database. It seems that my db is using a counter or something, so it wont get the new entries that have just been added. is there a quick way to "reset" my current query so that it will research the entire DB?
View Replies !
Cron Updates
I would like to know how I should go about doing the following: I Have a number of crons +-11 I would liek to show when the last cron updated and when the next one will update(have it as a count down). I have thought about setting it so it updates something the the database, and then get a live clock that works with server time that counts down. The problem with that is when the server has downtime, then the script's time will be inaccurate. See i do not host my crons on the same server as i keep my website. How should i go about doing this?
View Replies !
Password Updates
Im using Dreamweaver MX with a php/mysql page for internal use...ie no public face to it. I'm trying to make a change password page for the users, but everytime I try to add an Update Record action to the form, Dreamweaver says it wants a primary key value. OK, I understand that, it needs to know where to update, but it should get that from the recordset. I had the record set to pull session variables for username (userID is the PK, not username because ID is numeric and name is not) so my update should be able to pull from that right? So why won't it accept the value? I have to select that the "new password" field is going to be passed as text from the form, so the record set should determine where it is going to go. I've been playing around with scripts and different layouts for a couple days and just don't seem to be getting anywhere.
View Replies !
Easy Updates
I am building a website for a friend who is opening a business selling used vehicles. He would like to take a picture or two of a vehicle and display all of his vehicles on his site. Here's the catch. He knows basically NOTHING about computers. Sending email and browsing the web is about all he knows, and expecting him to be able to FTP images and edit html/php etc. is asking way too much. I was thinking I'd use MySQL and PHP, and build an "Admin" section of the site for him where he would simply click a "Add Vehicle" button, enter the info, browse to the pic(s) and click submit. The page would write the corresponding entry into the database. I have 2 questions: 1. Is this the correct way to go about this? 2. If yes, can someone point me to a good tutorial for uploading and storing images in MySQL?
View Replies !
Auto Updates
I am going to add some new features to my flash based games site, where every day, the best games of the day are shown as the "best daily games" I want to be able to update this automatically everyday after 12am, how would I go about this? Would I check the time on every user that visits and then update accordingly?
View Replies !
Php / Mysql - Updates
I manage a medium-size educational website and we had developers build us a new back-end system. It utilizes PHP 4.3.10 and MySQL Server 4.1. Do I need to do any updates or apply patches continually? Is it necessary to upgrade to the latest version of PHP / MySQL, or will this cause problems as the system was developed on PHP 4?
View Replies !
Implementing Multiple Updates
I am looking for some perspectives (other than my own) on possible approaches to a task. Pretty straight forward, I have a mysql db, a few tables. Within these tables I allow users to enter data. One of the fields will track the date the item was added and I will be using other scripts to clean house so to speak when they get a certain age. I am currenlty playing around with some various implementations and have it so that users can display all of thier own "items". This results in a table being displayed showing many of the DB fields. User records are going to be in the range of 20-3000 so I have incorporated prev/next buttons using limits and offsets to retrieve the results. Since many times users may want to remove items prior to them being automatically removed by me due to age and on that same note, they may want to "refresh" the item as well so that it does not automatically get removed. My initial thought was to use much of my current code to list a users "items" and allow them to refresh or delete items. My thought was to use 2 checkboxes, one to mark the item for deletion and one to mark it to be refreshed. Then the question arose, what would be an efficient way to maintain the status of the checkboxes for each record and how would that status best be preserved between pages? Should updates to the records be done as the user pages ahead/back or commited when the user reaches the last page? Anyways, any ideas for an efficient, user friendly (hehe, and programmer friendly) approach would be greatly appreciated.
View Replies !
Doing Multiple Updates For A Survey
I have MySQL database with 2 tables 1 has the questions and the other has the possible answers. I know how to update one table on the MySQL with using a form options. I also I understand I have to create a php file that will take the values. Which I have an idea how to make happen. Where I'm lost is how to have multiple questions updated at the same time.
View Replies !
PHP MySQL ... MS Wins Updates
A few new MS updates are around. Does anyone run an Apache server on XP pro and performed any MS updates since the past 6 months. I am always affraid to accept new MS updates that might hurt my Apache. A few months ago I heard bad reports about MS on XP pro and running “Apache and friends” on MS after updating.
View Replies !
Updates A File That Has Been Uploaded?
I made a script that uploads a picture, but whenever I update the same picture, I get an error that it cannot open the directory that I'm using. But it's practically the same script with my uploading image. I tried to use unlink() but it doesn't delete the existing file and same error occurs. Do you have any scripts that updates a file that has been uploaded?
View Replies !
Embeded PHP Reflect Updates
I have emeded PHP into an HTML doc (below) which I would like to update when I use JS in a click event (bottom). For now, I'm opening a new window with the JS to work out other problems, but now, instead of opening a new window, I'd just like the embeded doc to reflect the updates. <div class="info"> <embed style ="position: absolute" name="info" src="files/countryinfo.php?" width="237px" height="291px" type="image/svg+xml" /></div> window.open("USA.php?id="+idsel,"Client","wid...
View Replies !
Large Inserts And Updates
Can multiple INSERT or UPDATE queries be passed to mysql_query() by joining the statements together and separating them by a semi-colon? If so, is this faster than doing each query in a seperate call to mysql_query()?
View Replies !
Multiple Mysql Row Updates
I'm trying to update multiple rows in a mysql database. I'm having no problem selecting data from the database and displaying it in the form. I've even found a fairly straight forward script that is supposed to do what I need, BUT, when I submit the form (with changes), the update information is not working. It appears that the code is failing at/or before the if($Submit){. FYI, the fields I'm attempting to insert are decimal values (if that matters). Am I missing something?? Please see the entire script, below: Code:
View Replies !
Server Updates In Php-mysql
To begin with, i have a primary server running mssql located at the office. There's going to be a secondary server located in another site, in this site a secondary server will be running L.A.M.P.. My issue is that information from the primary server must be copied to the secondary server every half hour, definitely on the first run it will be all the info. but there after it will be just updates to the secondary. My question is, is it possible through PHP to copy data from a remote mssql database to a mysql database without having to create some form of temporary data storages; if yes how do i go about it? Secondly, clients have to connect to the temporary database over the internet and would like to implement secure http from login to viewing their online reports; again how do i go about this? Lastly, on one of the pages, the content changes every half hour and the client must be in a position to see the changes (if any), how do i make the page refresh every half hour or once there's a refresh in the secondary database?
View Replies !
|