Create Drop Down Select With Say Five Different Options
For the form I need to create drop down select with say five different options. There also should be possibility to enter own option if one is not listed. How can I do it.?
View Complete Forum Thread with Replies
Related Forum Messages:
Drop Down Options
I've got a drop down box which when I select the relevant item correcly updates the database but when I return to edit the form again the drop down is showing the wrong option even though the correct option is in the DB ....
View Replies !
How To Add URL To Options In Drop Down List
I am have a drop down list, whose options are read in dynamically from a table in a MySQL database. one of the items being read in is an URL. I am unable to display this URL in the drop down list. The following is the code snippet I am using: Code:
View Replies !
Drop Down That Holds Date Options
I have a drop down list that holds the following options: "today", "this week", "this month", "this year". Is it possible to get records from a mysql database based on what the user chooses from the above drop down using only one query? I know that using something like that: SELECT * FROM table WHERE (month(DATEFIELD) = month(now()) and dayofmonth(DATEFIELD) = (dayofmonth(now())) and year(DATEFIELD)=year(now())); I can retrieve today's records. So, one solution would be to create multiple queries and based on user input, execute the associated query. But given the fact that my form has various search criteria, i will end up with to many queries.
View Replies !
Pick From A Drop Down List That Automatically Gives Options In A Second Dropdown Box
does anyone know how to create a form that allows the user to firstly pick from a drop down list that automatically gives options in a second dropdown box. eg. 'category1' is selected from dropdown box 1, this then populates dropdown box 2 with the options 'category1.a' or 'category1.b' or if 'category2' is selected from dropdown box 1 then dropdown box 2 gives the options of 'category2.a' or 'category1.b' i f any one knows how I should code this please help, if not point me in the direction of a tutorial that can.
View Replies !
Select Options
I am trying to pass some 'on the fly' list contents to a php handler script. The lists are created using JScript and I want to know how to get the value of the contents (not just the selected ones, but ALL the contents).
View Replies !
SELECT * FROM Options
<? $query = "SELECT * FROM options"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $options_newaccount = $row["options_newaccount"]; echo "$options_newaccount"; } ?> Can any one see any thing wrong with this?
View Replies !
Javascript For Select Options
Here is my problem. mysql table A: customer -- Address ABC -- addr1 ABC -- addr2 ABC -- addr3 XYZ -- addr4 XYZ -- addr5 I would like to have 2 html select statement, 1st one, choose the customer ( dropdown for ABC or XYZ ), once the customer has been choosen, the second select will automatic come up the address for selected customer only.
View Replies !
Drop Down Select
I am working on a small script to load all members names into a drop down list, this I have acheived so far. What i'm looking to do is make this so that when I select a name from the list I have a submit button which opens up a member edit form which I have created. Code:
View Replies !
Select Data In Drop-down Box
I have a two text box and one select box. two text box will be filled with date values. (in the form of dd-mm-year) First text box is called "start date" Second is "end date" Thus, I want to put dates between "start date" and "end date" in select box. Is there any way to put automatically in option field? My idea is, first calculate the date difference and then, add date till startdate + difference.
View Replies !
Drop Down Box With Select Option
I have a couple of drop down boxes which you select the option you want, that value is then stored in the database. If you make a mistake there is an edit option which once clicked shows the form with the information filled in/selected. However my problem is that when you edit, although the current option which was previously entered into the drop down box is set as the starting value, which is disabled, if you dont change the drop down box the value is deleted rather than held as it hasnt changed. Code:
View Replies !
Multiple Select Drop-down
I've got a large drop down menu, that allows multiple select. I am trying to validate the form before submitting it by checking if all the required form fields are filled. If soemthing is not entered the form refreshes and I would like to be able to keep the selections in other form fields made by ECHOing them back. Everything works fine, except the multiple select drop-down: PHP Code:
View Replies !
Select Drop Down Not Retaining DB Value
After a user enters information into a db I have an edit.php page where the user can update the information they enter. While the edit.php page works correctly, it doesn't retain the value the user selected from select drop down / combo box type fields. For example, I have a <select><option> type field for country and while it will pull up all the countries in tluCountries, it doesn't remember the value the user selected. My code looks like this: Code:
View Replies !
Drop Down Select Box Which Contains The Option
I have a drop down select box which contains the option other beside this i have a tewxt input called "other_option " that can be filled in if other is selected. On my insert page this is the code i am trying to use to determin what goes into the database Code:
View Replies !
Create An Auto Drop Down Box
I need to create an auto drop down box. For example I already have a list of states that are pulled from the database. When the user selects a state, a drop down box below should populate with the cities from that state. (that's where I'm having trouble) This is a search form so the results have to reflect what city and state they chose. (along with some other criteria) I've searched all evening for instructions on how to do this and so far I've only seen javascript that you put directly in the code. If I have all 50 states along with their related cities that's an awful lot of code to put in the page. Isn't there a way to automatically pull the cities from the database to populate the box when the user clicks a state? I have no idea where to start to make that work.
View Replies !
Re-create A Drop-down Menu
I have 2 drop-down menus (1) States (2) Shows By State. how do I invoke a re-build of the Shows By State drop-down when the user requests a different state. I believe this has to be done with Javascript and I don't know Javascript. Could someone supply a small example of how this is done? I am using PHP and MySQL. Following is the PHP code for building the state drop-down menu: <tr><td bgcolor="#EFC891" width="496" align="left"><b>Select a Show in Your State: <select name="ShowState" > <?php $stateName=getStateName(); $stateCode=getStateCode(); for ($n=1;$n<=50;$n++) { $state=$stateName[$n]; $scode=$stateCode[$n]; echo "<option value='$scode'"; ..............
View Replies !
How Do You Create Sub Drop Down Menu?
I have been wanting to create this for my site but i am not sure how. I would appreciate if anyone could show me some example code of how it's done. What want to do is basically, say there are 2 drop down menus on my site, one for country and one for region. Say in the country menu you select UK, i would like all the regions in the UK to show up only, and if you select another country, only the regions in that particular country will show up. I am sure you understand what i mean. I would be very grateful if someone could show us how this is done.
View Replies !
Drop Box To Create Other Objects
I am attempting to create a mail form where several inputs will change depending on the user's selection on an initial drop box. I've been trying to use the OnFocus= command but I am not familiar with java. Code:
View Replies !
Create A Drop Down Form
I'm supposed to create a site that allows users to response to online questions. In particular, I was asked to create a reply button at the end of each question so that when users click the reply button, it will automatically drop down a form (instead of linking to another page) that allows them to type in their response and click the submit button. The information is supposed to be sent through email.
View Replies !
Select Table From Drop Down Menu
I'm trying to select a table to submit form data to from a pull down menu. How do I submit the table along with the input data? I know I need to modify this line ($sql = " INSERT INTO $dnc "; )somehow to use the table selected in the pulldown menu. Code:
View Replies !
Default Select Drop Down Menu?
I have a drop down menu populated via a script that pulls all categories from the category table. However, when a user clicks to view a specify category (i.e. Toys), I want the drop down menu to display toys as the default value. Code:
View Replies !
Auto-setting A Select Drop-down
I have 3 select menus for dates, I need to be able to auto set (on load) which number in the dropdown is selected, for example, if the date I pass to the page is this: 01/15/2007 I would use explode("/", $date) to get each number, I know for a fact that the format will always be (month)/(day)/(year), so no worries with that, but then how would I make it so that January is selected automatically, as is 15th, and the year 2007, in the drop-down menus?
View Replies !
Select (drop Down) Menu Query
I have a MySql table (meat) storing the results data of on online culinary exam. One of the fields in the record is "optype". It is a drop down select field with about 12 choices. I have a separate results page, and when a user goes to that URL the results are displayed automatically. I am currently displaying the results of the MySql table (meat) using the following query:: $query = "SELECT * FROM meat WHERE optype='Country_Club'ORDER BY time DESC"; Code:
View Replies !
SELECT Statement - Using Two Or Three Of The Drop Downs
I have a page that when you first go into, it outputs many lines from a MySQL database. Not a problem so far. It has five columns in it. Each column is a hyperlink so the user can sort of one of those columns. Still not a problem. I have that working perfectly. But, here is my problem. At the top of the page, I have a form with three options. They are drop down lists so the user can filter the main list down. I don't have a problem if the user only selects one of the drop down lists. But, if they filter down the list by using two or three of the drop downs, I am not sure how I would do the select statement. Here is some additional information. Code:
View Replies !
Trying To Select Names From A Drop Down List And Display Them
So, I already have the code written where I have a drop down menu with names in it. I want to be able to select multiple names from the drop down list and have them display in a table below the drop down menu. First off, I can't get one name to display, not to mention multiples. :p How may I accomplish this? CODE:
View Replies !
How To Response Immediately When I Select The Drop-box List
Do you have any idea when I try to select a drop box list, the data will show up in the following textbox immediately? eg. Name: --------------- drop-box list | <- when i select one of them --------------- Age: --------------- Textfield 1 | <- pop up immediately --------------- Address: --------------- Textfield 2 | ---------------
View Replies !
Drop Down Menu That Will Select Which Database Is Needed
i want a drop down menu that will select which database is needed for that page.. see i have a site im making for a clan that plays like 10 different games and i wanna have 1 index but the dropdown menu will be at the beginning and when a player goes to the site they can choose which game they play so they can check the news and stuff.. the drop down menu should choose which database is needed? can this be done or will i have to make 10 different index.php pages?
View Replies !
Create Or Resize Transparent .png - Drop Shadow - GD IM
I've searched and d/l'd but cant seem to find a way of creating a semi-transparent drop shadow for an image. Let me say, be fore I go on, I *do not* want one of those scripts that resizes your image a bit to the left and bottom, and then grafts a shadow onto it. I want to use a full shadow (it would be about as big as the image) and shift it a bit with CSS. So, I will have the image sitting in a DIV which will have the shadow as a bg. This works fine doing it manually. So, I would like to find one of two alternatives: 1. (best) Create the shadow from given parameters(size, darkness, spread, etc.) I will write the .png to a folder, I dont really need to create it dynamically each time, but want the ability for the future (galleries) and for when I'm in development and images are changing, moving around, etc. 2. (will work) Take a pre-existing shadow and resize it as needed, but has to keep the transparency.
View Replies !
Drop Down Menu Where The Items Are From A MySQL Select Query
I am just starting programming in PHP and wonder if it is possible to have a drop down menu where the items are from a MySQL select query. I am registering people for a weekend seminar and want to have a list of valid weekends to choose from on the form. Any pointers to scripts or PHP references that will help would be appreciated. I am using the book "Build your Own Database Driven Website Using PHP & MySQL" to get me started, but also need recommendations for a general primer to php.
View Replies !
Drop Down Menu Select And Populating Data Fields
I have a PHP/MySQL Content Management System set up for the job I work at. It's basically a shift program that lets users pick up shifts, post shifts, etc. The data fields are tied to the shift ID which is selected from a dynamically populated drop down box. However, I cannot get the data fields to be updated when I select a new value and I cannot get the form to accept the new selected Shift ID. I have tried using JavaScript but cannot quite get it to work. Code:
View Replies !
Need To Create Drop Down Box With Data Pulled From Text File
Trying to make a drop down box like this example: Dog Cat Bird But sometimes I will need to update it...and add/remove names from the list. I want to do it fast and easy and I don't want to use a MySQL Database. I'd rather use a text file...can that be done? I would keep the info in a text file and then push it to a drop down box via php and html.
View Replies !
Select From Drop List To Fill Table Column With Text -- HOW ?
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the column below. The viewer can select states from the drop down lists above the other two columns as well. If the viewer selects only one, only one column fills. If the viewer selects two states, two columns fill. Etc. I could, if appropriate, have a separate htm page with the text for each state -- california.htm for example. When the viewer selects California from the drop down list, the column below would "fill" with California.htm. Or, I could conceivably use a text or mysql database with two fields for each record: state_name and law_text -- but it would probably be easier to use separate htm files, since there will only be about 20 states involved, and the "database" would never have a large number of records. The table width would be 100% and each cell would be @33% My site is designed with FP 2002 and runs on Apache/FreeBSD. I have just had Apache-ASP installed but I have not yet configured or used the module.
View Replies !
MYSQL Select Create A BASIC Recursive Function
My database is the taxonomic classification of animals found in a particular region. ID - CATEGORY - NAME - PARENT ****************************** 1 - KINGDOM - ANIMALS - 0 2 - CLASS - MAMMALS - 1 3 - CLASS - BIRDS - 1 etc... Categories can be 'kingdom', 'phylum', 'subphylum', 'superclass', 'class', 'subclass', 'superorder', 'order', 'suborder', 'superfamily', 'family', 'subfamily', 'genus', 'species', 'subspecies', so the tree-structure is deep and the database is large (2300 records). I want to create a BASIC recursive function in PHP+MYSQL and generate a tree structure which will STOP at "species".
View Replies !
Create A Sql Query That Will Select Records By Selecting A Month
I am trying to create a sql query that will select records by selecting a month. So for example I have to create a query rhat will select all entries between 1st jun and 1st july (1117609200 and 1120201200) which should not be that hard. Is there a function that will generate what the timestamps should be automatically instead of me having to calculate them manually.
View Replies !
How To Create The Form Boxes And Drop Down Boxes
Im going to create a php form that allows someone to signup to my web hosting site, once they have filled in all the relevant parts and the have selected the hosting package they want and hit the submit button. i want the form to take them to a correct webpage that will allow them to pay for the package that they have selected on the form. I know how to create the form boxes and drop down boxes but i dont know the correct coding to pick up package variableon the last drop down box .
View Replies !
Drop Down 2 Echo Seletion On Drop Down 1
I would like to put up a list/menu drop down so when you select something it echo's something in the second drop down. Example Drop menu 1 ----------------------- course 1 course 2 Drop menu 2 ------------------- If course 1 echo course 1 dates. If course 2 echo course 2 dates Does anyone have an example for me or what do I need to search for cause I don't quit know what it is called and thus I cannot find anything on Google.
View Replies !
Sorting Options
I have an array I would like to sort, but the sorting options that I have found are inadiquate. I need to do a case insensitive sort, that does not maintain the index correlation. My problem is I have some items in my array beginning with "a" and some with "A", and I want the sorting based strictly on the letter not the case, and then I have to be able to reference them in an order that maintains the sort.
View Replies !
Php Web Payment Options
What would be the best way to add a credit card (and maybe also other systems) payment option to my php website shop? Is this something that can be done by a regular developer like me? And if so where can i find information on how to do this. Or is it customary/best to let a specialised company handle the actual payment part of the transaction. And if so what can i expect to pay to such a company for each transaction, and which are respectable companies in the "Netherlands" region.
View Replies !
Dynamic Options
I'm creating an online database app for a dog grooming business. The problem I'm trying to solve at the moment is this: Each booking is linked to one customerEach customer may have more than one dogThe customer may bring more than one dog to be groomed The problem I'm having is how to get this information into the database. I've spent quite a lot of time on the design side of the database and I'm confident it's structure is a workable one. At the moment the user can select a customer from a drop down list. The ID of this customer gets put into the booking table. Along with this the time, date etc all get put in. Easy. However I'm not sure how I can let the user select which dogs are linked to the booking. What I'm looking for is: The user selects a customerA list of the customers dogs is pulled from the MySQL databaseThe user can select as many dogs as they like from this list.
View Replies !
Recompiling Php With New Options
I've just installed php but after the installation I found that I should had compiled php with zlib enabled. I know that I can recompile php by doing ./configure with the new options but my question is: Is that all have to do in order to recompile php or do I need to change certain settings in php.ini file so that it may work with the options?
View Replies !
Insert Options
I choose this code for upload 3 files for certain directories but don't know how to do if certain file fields are empty(the files aren't obligator fields): Code:
View Replies !
|