Member Avatar

Getting an empty drop-down list by the following code. Trying to fetch names from the department table. Using an oracle Database... <label for="department">Department</label> <select class="form-control" name="deptname" id="deptname"> <option selected disabled></option> <?php $dbUser = "..."; $dbPass = "..."; $dbConn = "(DESCRIPTION = (ADDRESS = (PROTOCOL=TCP)(HOST=...)(PORT=1521))(CONNECT_DATA=(SID=...)))"; $conn = oci_connect($dbUser, $dbPass, $dbConn); $sql = oci_parse($conn,"SELECT Department1.NAME FROM Department1"); oci_execute($sql, OCI_DEFAULT); ?> <?php while (oci_fetch($sql)) { ?> echo '<option value="<?php echo oci_result($sql, 'NAME')?>"></option> <?php }?> </select>

+0 forum 0
Member Avatar

I'm attempting to simplify my fundraising page, and would like to show exactly how much each donation would help us out. I've listed the options below, but I would like for the first two dropdown boxes to change the third one depending on the combination chosen. Fruthermore, I'd like for the third dropdown box to adjust the first two if that one is selected. IFFTT, basically. No action needed beyond that, as it's mostly meant for informative purposes. Is this possible? Thanks for any help whatsoever. Examples: 1 donation of $50 = 1 hour of gym time. 10 donations of …

Member Avatar
+0 forum 3
Member Avatar

Hello everyone. Please help me. Select box <select> is not working in phonegap app only on gingerbread. It works on iOS and Adroid ice cream sandwich + jelly bean. I use jquery 1.9.1 and iscroll 4.2.5 and phonegap 2.3.0. Does anyone has any idea why would it work in ics and jb but not in gb?

Member Avatar
+0 forum 10
Member Avatar

You have some serious query/caching issues. Times vary but slow nonetheless. Finder -> My Bookmarks Page generated in 26.1996 seconds with 8 database queries and 7 memcached requests using 6.01MB of memory Latest Posts Page generated in 16.5247 seconds with 5 database queries and 6 memcached requests using 4.71MB of memory Latest Post Comments Page generated in 47.6937 seconds with 5 database queries and 32 memcached requests using 4.92MB of memory While posting this to your shoutbox earlier I noticed that my profile dropdown and the finder dropdown aren't working in the shoutbox.

Member Avatar
+0 forum 2
Member Avatar

Hi everyone, Can you please let me know how I can assign the selected value from a dropdown list into a $variable and print or echo it in the screen For Example if I have a dropdown list of years like: [CODE] <?php $years = array(); for ($i = 1900; $i < 2026; $i++) { $years[] = $i; } echo "<select name='Year'>"; foreach($years as $option){ echo "<option value='{$option}'>{$option}</option>"; } echo "</select>"; ?> [/CODE] Now I want to save the selected value in a variable to do any further process? Thanks for your time, in advance.

Member Avatar
+0 forum 7
Member Avatar

I am trying to populate dropdown with database what i am actually trying to do i have 3 drop downs country ,state and city and i want if user select any country crossponding states are shown in dropdown and crossponding cities releated to state are shown in city dropdown.I don't how to achieve this all fields will be saved in tabl_usrs and and i have nm_country,nm_state and nm_city table from where country states and cities are shown in tabl_usrs i have country,state and city field wwhich act as foriegn key?? any links will be welcome.Hope any one can help.below is …

Member Avatar
+0 forum 2
Member Avatar

Hi friends i am trying to display dynamic dropdown using php. but it is not fetching the second dropdown value. I collected the below code from internet. please help me to fix it. <?php $dbc = mysqli_connect("localhost","root","escape123","tsheet"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $tAOptions=''; $cNOptions=''; $pNameoptions=''; /*Task Drop Down*/ $tAsk = "select * from ce_task order by tas_id asc"; $rowtAsk = mysqli_query($dbc, $tAsk); while ($tARow = mysqli_fetch_array($rowtAsk)) { $tAOptions .="<option value=\"".$tARow['tas_name']."\">" . $tARow['tas_name'] . "</option>"; } $tADropDown = "<select name='Task' id='Task'> <option selected='selected' disabled='disabled' value=''>Select Task</option> " . $tAOptions . …

Member Avatar
+0 forum 8
Member Avatar

i have a restaurant dropdown menulist, when sb clicks the one of the various meals i want a picture of it to <img id="menupic"src="picFold/actualPic.jpg" alt="Foto der Men&uumlliste">. I only had partial success , who can help me finalize this task ? thx sofar : menu.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Speisemenue</title> <link rel="stylesheet" href="jquery-ui-theme.css"> <script src="jquery-1.10.2.js"></script> <script src="jquery-ui.js"></script> <link rel="stylesheet" href="jquery-ui.css"> <link rel="stylesheet" href="style.css"> <script> $(function() { $( "#menu" ).menu(); }); </script> <style> .ui-menu { width: 150px; } </style> </head> <body style="background:darkred"> <div><a class="homeButton" href="index.html">Home</a></div> <ul id="menu"> <li>Pizzen <ul> …

Member Avatar
+0 forum 2
Member Avatar

Urgently need a menu dropdown WITH IMAGES for a restaurant website for its food menu. Looked for jquery on the internet,couldnt find one, only complete wordpress themes or some without images , but i'm looking for javascript or jquery or anything else to implement since the website is not on wordpress. Help !!!!! Thx !!!!!

Member Avatar
+0 forum 2
Member Avatar

Hi Guys, As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M. I figured out that I can only grab the selected value for PHP to process if it was submitted, i.e., through a form. Then I could do something like this: if($_POST['dropdown'] == 'M') { $product = 'link'; } else if { //do something else } But I am not sure if this is possible using …

Member Avatar
+0 forum 3
Member Avatar

As it stands, the data elements are submitted to the database. But I need help figuring out two things: one, is how to show the new deptCode in the dropdown list of deptCodes and two, how can I clear the form after a successful submit? Below is the code that I am working with. Any help with this is greatly appreciated. <script type="text/javascript"> $(function() { $("#btn_dept").click(function(e) { e.preventDefault(); var deptCode = $("#newDeptCode").val(); var deptTypeCode = $("#deptType").val(); var deptName = $("#deptName").val(); var deptEmail = $("#deptEmail").val(); var deptPhone = $("#deptPhone").val(); var deptDesc = $("#deptDesc").val(); var dataString = 'deptCode='+deptCode+'&deptTypeCode='+deptTypeCode+'&deptName='+deptName+ '&deptEmail='+deptEmail+'&deptPhone='+deptPhone+'&deptDesc='+deptDesc; if(deptCode == '') …

Member Avatar
+0 forum 6
Member Avatar

hello,everyone i am making a registration page baesed upon php,codeigniter diificulity i am facing was when i try to make radio button or dropdown it misbehaves radio button's are not in single line but in different line so any one can help???? //my registration page <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Registeration</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- CSS --> <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=PT+Sans:400,700'> <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Oleo+Script:400,700'> <link rel="stylesheet" href="../../assets/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="../../css/Registeraton.css"> <link rel="stylesheet" href="../../css/bootstrap-responsive.css"> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Custom …

Member Avatar
+0 forum 3
Member Avatar

In vb. Net application i have a combobox with properties- custome source autocomplete Dropdownstyle- dropdown I use string method to autocomplete combobox from custom source of database. I want to cleat text from the combobox after save button event. I use following code for that but its not working. Combobox.selectedindex=-1

Member Avatar
+0 forum 4
Member Avatar

Good afternoon to all i am currently working on a logistics project, where in one of the forms the user needs to select a shipment number and other information related to the shipment. the form is made up of 4 dropdowns a textbox and a gridview as follows. **The Dropdowns are a follows* Shipment No - display the shipment number which was entered from a previous form and is saved in a database table named dbo.ShipmentNumbers Client - lists all the clients names which are found in the dbo.Client table Brand - lists all the Brand names which are found …

Member Avatar
+0 forum 1
Member Avatar

[Click Here](http://dev.appcotech.com/pwrdup/static/become-postie.php)[1] UnderConstruction please go to upper link and click on SIGNUP TO DRIVE (Blue cruve Button) there will be a tab open type `london` (Not From Drop Down) only just type `london` and hit enter page will redirect to dev.appcotech.com/pwrdup/static/become-postie-vehicle.php page (This mean post keyword matched 100% with database) than come back to previous page and again type `london` now this time from Dropdown menu you will find `London, United Kingdom`,and hit enter. They are same city but my database have only keyword `london`.so page will redirect to dev.appcotech.com/pwrdup/static/city-unavailables.php This mean result not matched 100% I want to match …

Member Avatar
+0 forum 1
Member Avatar

Hello, I have a file like below that contains datewise value for every hour for 2 locations. I need to add the value for the same hours for ServerA and ServerB. Using Hashes, I am able to add the server value per hour. But cannot pass it to a table. I am selecting "Loc" via a dropdown to use a switch to select the data. Input File: Loc Date TYPE Server Hour Val EMEA 1-Sep TYPE-A Server-A 00 4 EMEA 1-Sep TYPE-A Server-B 00 4 EMEA 1-Sep TYPE-A Server-A 01 5 EMEA 1-Sep TYPE-A Server-B 01 5 EMEA 1-Sep TYPE-A …

Member Avatar
+0 forum 19
Member Avatar

Hi Im a newbie in asp.net, im a php programmer though, and i've been working on a pop up div with a search engine on it, in php i have no problem working with json but in asp it took me already two days to find a similar problem, yet no luck. I hope you can help me.. heres my code //HTML i have a dropdown and a textbox for input of the keyword <table id="filterContainer"> <tr> <td> Filter By: <asp:DropDownList ID="DropDownList3" name="filter" runat="server" > <asp:listitem text="Please Select.." value=""></asp:listitem> <asp:listitem text="Id" value="id"></asp:listitem> <asp:listitem text="Program Title" value="title"></asp:listitem> <asp:listitem text="Customer Name" value="name"></asp:listitem> …

Member Avatar
+0 forum 7
Member Avatar

Hello, I hope that I can get an answer for this question. I have a MYSQL table for charges which contains the following fields: ChargesID, ChargesTitle, OfficialFees and ProfessionalFees. What I need is to make a dropdown list which contain ChargesTitle and upon selection to autofill the OfficialFees and ProfessionalFees. I found the following jquery script and is working fine with a static data only. Any idea to change or update the script to work with php and dynamic data from MYSQL. <select id="Charges"> <option value="">Please Select</option> <option value="1" data-officialcharges="100" data-professionalcharges="30" >Option 1</option> <option value="2" data-officialcharges="200" data-professionalcharges="40" >Option 2</option> <option …

Member Avatar
+0 forum 3
Member Avatar

I would like to create a series dropdown boxes, each containing the same listing content. However, when one option is selected from the preceeding dropdownbox, that element is removed from the remaining boxes. I would like this process to continue until all selection have been selected. 1 <select name="box1"> <option>value 1</option> <option>value 2</option><!--if this is selected--> <option>value 3</option> </select> 2 <select name="box2"> <option>value 1</option><!--if this is selected--> <option>value 2</option><!--NOT SELECTABLE--> <option>value 3</option> </select> 3 <select name="box3"> <option>value 1</option><!--NOT SELECTABLE--> <option>value 2</option><!--NOT SELECTABLE--> <option>value 3</option> <!--The ONLY SELECTABLE OPTION--> </select> ANy thoughts on how this can achieved?

Member Avatar
+0 forum 2
Member Avatar

Hi I would like to ask. I have one dropdown list control. What are the different between this 3 in dropdown list. 1. Dropdownlist.SelectedValue 2. Dropdownlist.SelectedIndex 3. Dropdownlist.SelectedItem Thank you :)

Member Avatar
+0 forum 2
Member Avatar

Hello, I have created a select product using a different way like frst we select product from dropdown and click on next button on next page the dropdown have to show the company names i.e only that companies which belongs to the selected product but i am bit confused how it will work i tried to use v_id like company id but its not working can anyone help me out. Database structure CREATE TABLE IF NOT EXISTS `products` ( `prod_id` int(11) NOT NULL AUTO_INCREMENT, `product_name` varchar(255) NOT NULL, `product_price` int(20) NOT NULL, `prod_details` text NOT NULL, `v_id` int(11) NOT NULL, …

Member Avatar
+0 forum 3
Member Avatar

so i am trying to output course information when the course number is selected and the button is clicked. here is the html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Course Info</title> </head> <body> <h1>Course Information Search</h1> <form action="" method="post"> <select name="course" id="course"> <option value="420-121">420-121</option> <option value="420-122">420-122</option> <option value="420-123">420-123</option> <option value="420-221">420-221</option> <option value="420-222">420-222</option> <option value="420-223">420-223</option> <option value="420-224">420-224</option> <select> Select a course to see the course name and teacher assigned<br><br> <input type="button" id="go" value="go!"> </form> <br><br> <div id="courseInfo"></div> </body> </html> php <?php $filename = "data.txt"; try { if ($courses = @fopen($filename, "r")) { while (!feof($courses)) { $line = fgets($courses); $array = …

Member Avatar
+0 forum 13
Member Avatar

I wanted to chain 3 selects and I got it working using this code. http://jsfiddle.net/FJFFJ/1/ The issue I now have is, how do I fetch the selected values from each dropdown in PHP? For example, the above creates 3 select boxes when the page is opened. When I click on "+" button and add more rows of selects, how do I fetch the values from all selects which were added dynamically and save those to mysql database in php?

Member Avatar
+0 forum 12
Member Avatar

On my controller I have a variable called 'name' => $child['name'], for my drop down menu. The problem I am having is that in the child dropdown menu it still shows parent name. I am trying to make it so if parent_id name is equal 0 then will not show in dropdown child links. Why is it still showing parent name in dropdown child links **Controller** <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Test extends MX_Controller { public function index() { $this->load->model('admin/catalog/model_catalog_category'); $data['categories'] = array(); $categories = $this->get_categories(0); foreach ($categories as $category) { if ($category['top']) { …

Member Avatar
+0 forum 3
Member Avatar

Dear Sirs, I have two tables (Clients and Country), my below php code is for creating a new client with a dropdown box from country to insert the id_country into clients table. When click add new nothing added to table clinets: any help please: <?php $jsFile = 'newClient'; // Add New Client Account if (isset($_POST['submit']) && $_POST['submit'] == 'addClient') { // Validation if($_POST['id_country'] == "...") { $msgBox = alertBox($selectcountryReq, "<i class='fa fa-times-circle'></i>", "danger"); } else if($_POST['clientEmail'] == "") { $msgBox = alertBox($emailReqMsg, "<i class='fa fa-times-circle'></i>", "danger"); } else if($_POST['password1'] == "") { $msgBox = alertBox($passworReqMsg, "<i class='fa fa-times-circle'></i>", "danger"); } …

Member Avatar
+0 forum 2
Member Avatar

Hello. I am having a small problem involving a text label not displaying correctly over a field. It was fine until about a week ago; I believe I must have changed something and now I do not remember what I did that is causing this error. The State text label should display over the dropdown but no matter what I try I cannot get it to render in this manner. Here is code related to this area in question: ` <!--City Field--> <label type="grey" for="email">City:</label> <input type="field" type="text" name="city" id="city" size="23" /> <!--State Field--> <label>State:</label> <select name="state" id="state"> ` Please …

Member Avatar
+0 forum 15
Member Avatar

I have a form on a page where users can save information, and a dropdown that pulls those saved files from the directory they saved them to. What I would like is when they go to that page, is that when they select the filename from the dropdown box, it places the name of the file in the input box "CodeDescription" field and the information on the file in the textarea "Code" , however I am unsure how to go about parsing that. Below is my current code. <input type="hidden" name="Action" value="EDIT" /><input type="hidden" name="Selection" id="Selection" value="-1"><div>Below is the list …

Member Avatar
+0 forum 3
Member Avatar

Does anybody knows any good scrollable dropdown menu without thrid parties?

Member Avatar
+0 forum 8
Member Avatar

hi i have a select(dropdown button) which displays various chioce for the user to select .. i want to validate it that if the user does not select any choice i should not able to do any action how to do. Is there any like required available for text box in html

Member Avatar
+0 forum 2
Member Avatar

Hi all, I'm working on an old project of mine that I used to self-study PHP which used Bootstrap 2. Revisiting the project a year on I'm looking to restrict the max-height of dropdown.js but can't - for the life of me - get it done. The best solution would be to have an `overflow: scroll;` `max-height: 450px;` situation. Checkout the dropdown menu in this example: http://jsfiddle.net/S3XLH/, you'll see that the menu item named 'dropdown' is far too big for the page. How can I limit the height of dropdown menu? Thanks for any help - I thought I knew …

Member Avatar
+0 forum 2

The End.