( https://i.stack.imgur.com/1LPVk.png ) i mention my link where output show when i press drop-down button then show empty fields but i have values in my sql table link ( https://i.stack.imgur.com/YEopy.png) but it does not execute my values in drop down list..i need help...when i show error it does not dispaly any error but show empty in dropdown list.. and my PHP code is: ` <tr> <td>Country Name</td> <td> <select name="name"> <?php $conn = oci_connect("username", "pswrd", "db"); $sql = 'SELECT name FROM country'; $stid = oci_parse($conn, $sql); $success = oci_execute($stid); while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS+OCI_ASSOC)) { echo "<option value=\"countryname1\">" . $row['name'] …

Member Avatar
Member Avatar
+0 forum 12

I'm trying hard with displaying details from a selected option in a drop down list for my project. I have a drop down list which is populated from a MYSQLi query. I want the user to select an option and the values associated pulled from the database and displayed to the user. The dynamically populated drop down list is for "FirstName" of persons(Table Name) and when a user selects a name from the drop down list I want the record of that person to be to be displayed. The code below is for dynamically populating the drop down list. The …

Member Avatar
Member Avatar
+0 forum 6

Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; }elseif ($user_choice == "font_style_3"){ $font = 'thiredfont'; }elseif ($user_choice == "font_style_4"){ $font = 'forthfont'; } ?> <html> <head> <style> h1 { font-family = $font; } </style> </head> <body> <form method='post'> <select name="font_styles"> <option value="font_style_1">font_style_1</option> <option value="font_style_2">font_style_2</option> <option value="font_style_3">font_style_3</option> <option value="font_style_4">font_style_4</option> </select> <input type="submit"> </form> <h1>username</h1> </body> </html> I want when a user opens the drop-down menu and chooses an option, the font of the <h1> tag changes and the user …

Member Avatar
Member Avatar
+0 forum 7

I am maybe blind or so... just got nearly the same problem as before. I not get the values of the selectfields. I got 0 - 8 instead of some strings. Here is the url: http://web159.login-142.hoststar.ch/memberd/de/prices/ Here is my code I use to get it: # read size of one of these arrays $count = count($_REQUEST['BX_NAME']); # loop for($i = 0, $e = 1; $i < $count; $i++, $e++) { $divers.= "Diver/PAX #{$e}: Name: $BX_NAME[$i] / Shoe-Size: $BX_shoesize[$i] / Weight: $BX_weight[$i] / Heigth: $BX_height[$i]<br />"; } I did a postdump and this works, I mean I get and see what …

Member Avatar
Member Avatar
+0 forum 1

Hi I just have the follow problem. In my form, I have a select option. Usually I should see some text there, I can change and open the dropdown menu, but I not see any text. What it could be? Here is the url: http://web159.login-142.hoststar.ch/memberd/de/prices/ And here some html code: <form action="/memberd/enquiry.php" method="post" id="genForm"> <h3 class="colour-holiday">Bitte geben Sie Ihre Daten ein</h3> <p>Mit * gekennzeichnete Felder sind Pflichtfelder. <br /> Mit ** gekennzeichneten Felder sind Pflichtfelder, entweder Sie wählen eine Dienstleistung aus oder füllen das Feld für einen Anfrage aus.</p> <label>Name: <i>*</i></label> <input type="text" size="22" name="sender" id="sender" class="name" required /> <label>E-Mail: …

Member Avatar
Member Avatar
+0 forum 1

I've been having a ton of problems since my boyfriend clicked on an email he thought was authentic from an ebay fraud. Web pages have been slow to not responsive, I kept getting errors about remote server refusing connections, the lan service kept showing proxy server settings and when I would uncheck the box, it just went back again. Also, I cannot view the wireless adapter properties because it says I don't have administrative privileges which is what I sign in under I think and also when I click on the show characters under the password it never shows it …

Member Avatar
Member Avatar
+0 forum 5

i need to create 2 selection; 1st selection has fix option and the second selection will be base on the selected selection 1 selection 1 option 1 = number option 2 = letter option 3 = char number option 1 = 1 option 2 = 2 option 3 = 3 letter option 1 = abc option 2 = def char option 1 = ! option 2 = @ option 3 = #

Member Avatar
Member Avatar
+0 forum 2

hey guys. im trying to show a dropdown list and hide input text when an option in another drop down list is selected. dropdown <select name="table-type" id="select-t"> <option value="" disabled selected>Types of Tables</option> <option value="Round Table" id="rt">Round Table</option> <option value="Banquet Table" id="bt">Banquet Table</option> <option value="Square Table" id="st">Square Table</option> </select><br> No. of seats : <br> <input type="text" readonly placeholder="Select Table" size="8" id="inform" /> <select name="seatno" class="seat-r" id="seat-r"> <option value="" selected disabled>No. of seats</option> <option value="6">6</option> <option value="8">8</option> <option value="10">10</option> <option value="12">12</option> </select> <select name="seatno" class="seat-b" id="seat-b"> <option value="" disabled selected>No. of seats</option> <option value="6">6</option> <option value="8"></option> <option value="10"></option> </select> <select name="seatno" …

Member Avatar
Member Avatar
+0 forum 2

Hello, when i click on option of dropdown box they could not select any option. Its working good in all other browsers.option coming through ajax. I have a problem in dropdown select option in IE11. see attached screenshot .Please help me someone to solve my problem. Thanks & Regards Nits

Member Avatar
+0 forum 0

Is it possible to see what the index is of a Select combobox selection? I have website with a select box which has a few hundred options. <select name="breed" id="breed"> <option value="">Please select</option> <option value="Abyssinian" >Cat: Abyssinian</option> <option value="American Bobtail" >Cat: American Bobtail</option> <option value="Mixed (Unknown)" >Cat: Mixed (Unknown)</option> .... <option value="Mioritic Sheepdog" >Dog: Mioritic Sheepdog</option> <option value="Mixed (Unknown)" >Dog: Mixed (Unknown)</option> .... </select> My problem is that the "Cat: Mixed (Unknown)" and the "Dog: Mixed (Unknown)" both return the same option value. Is it possible to get the index number of the selected item? Cheers, Dave

Member Avatar
Member Avatar
+0 forum 4

Hi guys, Now i doing one website. In that i have add polling option to it. if visitiors participate that poll after answer that question they know how many % of peoples can answer that question in graphically view. E.g Who scored First 200 runs in ODI? A) Dhoni B) Sachin Tendulkar C) Virender Sehwag After user answer the above question i want to show graphically view of poll status. I need to do it in jquery. Can any one know abt this. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

how can i add chat option in my website?

Member Avatar
Member Avatar
+0 forum 5

Hi, I am looking for when you select a value from dropdown and submit. The results has to show in the same page with percentage. It is like voting. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 12

Hello Everyone, I have a problem and looking forward for your kind help. I need the <select> tags option value to be set selected on the page load. The problem is that everytime the value which is to be selected may change on each page load. Thank you.

Member Avatar
Member Avatar
+0 forum 5

Onchange Select option how to display a another select option

Member Avatar
Member Avatar
+0 forum 1

Hi I am learning **PDO**. I already got my **PDO-DB** ready. The query works because it does fetch data when I echo out the data but I don't know how to echo out the data from the database to the dropdown list. I try to echo out this way (it didn't work): <select name="PostCats"> <?php function getCats() { global $conn; $stmt = $conn->query('SELECT * FROM category'); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo "<option value=".$row['id'].">".$row['title']."</option>"; }}?> </select> I also try to echo out this way too (it didn't work either): <select name="PostCats"> <?php function getCats() { global $conn; $stmt = $conn->query('SELECT * …

Member Avatar
Member Avatar
+0 forum 6

I'm trying to use this code to populate my drop down menu from a mysql table: <select name="fileselect"> <?php $pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', ''); $stmt = $pdo->prepare("SELECT dateid FROM date_header"); $stmt = $pdo->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo "<option value='" . $row['dateid'] . "'>" . $row['dateid'] . "</option>"; } ?> </select> Does anybody know what could be wrong?

Member Avatar
Member Avatar
+0 forum 4

Alright, so I need some more help. This time, the problem is not inherently in the code (Though I've had trouble with that thus far too). I am currently playing around with open and close file dialogs trying to get what seems to be an out-dated "GetOpenFileName()" function to work. and this lead me down the path of what is this IFileOpenDialog this and that and other things... EVENTUALLY, I found the suggestion to use the Open Watcom compiler instead of the GCC compiler. I followed the code::blocks instructons to plug the Watcom compiler in and now I am getting …

Member Avatar
Member Avatar
+0 forum 12

note i am working on eclipse, java, xml and anroid. i have a activity_right_sub_menu.xml file <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/I_ABOUT" android:title="About Us" android:numericShortcut="1" android:alphabticShortcut="a" android:orderInCategory="100" android:showAsAction="never"/> <item android:id="@+id/I_PREFERENCE" android:title="Preferences" android:numericShortcut="2" android:alphabticShortcut="b" android:orderInCategory="100" android:showAsAction="never" /> </menu> than i have a Menu.java file public class Menu extends ListActivity { /*** same as .java file ***/ String classes[] = {"Main", "A_01_Text", "A_02_Email", "A_03_Photo", "A_04_Data", "example3", "example4"}; protected void onCreate(Bundle savedInstanceState) {...} //works fine protected void onListItemClick(ListView l, View v, int position, long id) {...} //works fine //errrorrrrrrrrrrrrrrr in this function //i get error whee it say "R.menu.activity_right_sub_men @Override public boolean …

Member Avatar
Member Avatar
+0 forum 1

Hey everyone, Been working on a php snippet which finds the names of all the files in a Directory and populates them into a drop down box. Which would then allow me to select that file, click a submit button and delete them. Here is what I have SO <?php $path = "uploads/"; $handle = opendir($path); while ($file = readdir($handle)) { if (substr($file,0,1) != ".") { echo "<option value ='$file'></option>"; } } closedir($handle); ?> This does not work, however, Replace the echo with: echo $file . "<br>"; And it does work, Any help? Thanks guys

Member Avatar
Member Avatar
+0 forum 2

I have a form with a dropdown list that when they click on it or when they mouseover it (either would be ok) it should show a popup tooltip. My javascript skills are at best very very basic. This is a wordpress site and I am reluctant to add jquery to the mix so just a pure javascript solution would be great. I tried just putting a text label but that didn't work. I tried the following simple javascript: <script> function popMssg(message) { alert(message); } </script> and used <option value='Board of Directors' onclick=popMssg('The Board of Directors sets overall policy for …

Member Avatar
Member Avatar
+0 forum 1

<select name="country" id="country"> <option value="IN">India</option> <option value="PK">Pakistan</option> <option value="UK">United Kingdom</option> <option value="US">United State</option> </select> When a user selects a country and clicks submit php gets the **value=""** ie, country code instead of country name.

Member Avatar
Member Avatar
+0 forum 3

Hello all! I currently have a drop down which consists of a list of names generated from the database. My problem is that when selecting a name from the dropdown I would like to insert the name and the corresponding ID into the database table. I am not sure if this is possible with php? I would appreciate any help. Here is the code which I made so far. This populates the dropdown with the names and when processing the form, it inserts the name into the name column. I would just like to add the ID into the ID …

Member Avatar
Member Avatar
+0 forum 10

Alright, I have a Webbrowser which has a page opened. I want it to select a specific Option from the Combobox. How can I do that in VB ? HTML Code: [CODE]<select name="Protected"> <option value="NC"></option> <option value="ON">ON (protected)</option> <option value="OFF">OFF (unprotected)</option> </select>[/CODE] VB Code: [CODE]For Each element As HtmlElement In Me.WebBrowser1.Document.All("Protected").GetElementsByTagName("option") If element.GetAttribute("OFF") = "OFF (unprotected)" Then element.SetAttribute("selected", True) Exit For Next[/CODE] I tried it but it doesn't seem to work. What am I doing wrong? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 4

I have a simple JavaScript question. I want a drop down selection so that when you select a certain option is shows the value of the option in a div. So for example: [CODE]<select> <option value="select-1">One</option> <option value="select-2">Two</option> <option value="select-3">Three</option> </select>[/CODE] So lets say that option one is selected, then in a div somewhere else on the page "select-1" (the value of option one) would show up in that div. Same thing with all the other options. I will have a bunch of these on one page. Does anyone know how to do this? Thanks!

Member Avatar
Member Avatar
+0 forum 1

I have a problem making a select tag in php code dynamic. I'm creating a website (homework) using php and connecting to an oracle database which has all the info needed. Each agency has a list of vehicules. I created a select option tag for agencies and for vehicules. I want the data for vehicules to change depending on what agency the user chooses. So if the user chooses agency A, the vehicules that should be available on the select option tag for vehicules should be that of agency A1 and no other agency. So far I have all the …

Member Avatar
+0 forum 0

Hello DaniWeb Users, I am new to the forum however from what I have seen it is exceptionally good! I have searched the forums already and found various questions relating to a similar problem as mine however I am unable to work out how I can amend this for my problem. During web research I found various suggestions such as While loops (which I can't see how it can run in my piece of code), GOTO (which apparently is a big no) and Switch. I am trying to make a Text Based Adventure Game to run in CMD as my …

Member Avatar
Member Avatar
+0 forum 6

Good day, I have a problem here: is it possible to put an input field into option such as this?[CODE]<select> <option><input type="text" value="aa"></option> </select>[/CODE] (This is not working, any suggestiuon on how to refine it for it to work?) Any help will be appriciated.

Member Avatar
Member Avatar
+0 forum 1

[CODE]function populateHarga() { var x=document.getElementById("barang").value; document.getElementById("harga").value=x; var y=document.getElementById('barang')[document.getElementById('barang').selectedIndex].innerHTML; document.getElementById("nama_brg").value=y; } function populateTotal() { var y=document.getElementById("jumlah").value; var x=document.getElementById("harga").value; document.getElementById("totalnya").value=x*y; } </script> <html> <body> <?php include ("db.php"); $now=date("Y-m-d",time()); ?> <? if($_REQUEST['action']=="del") { mysql_query("DELETE FROM temp WHERE t_no={$_REQUEST['id']};"); } ?> <table border="0"> <tr> <td>No.Faktur</td> <td><? echo "$no";?></td> <td></td> <td>Tanggal Order</td> <td><? echo "$now";?></td> </tr> <tr> <td>Atas Nama </td> <td><input name="nama" id="an" type="text" maxlength="25" /></td> <td></td> <td>Tanggal Kirim</td> <td> <input id="tgl_pakai" name="tgl_pakai" type="text" /></td> </tr> <tr> <td valign="top">Alamat</td> <td><textarea name="alamat" cols="50" rows="5" /></textarea ></td> </tr> </table> <?php //Request $nama_b=$_GET['nama_brg']; $harga_b=$_GET['harga']; $jumlah_b=$_GET['jumlah']; $total_b=$_GET['totalnya']; if($nama_b!="") { if($jumlah_b=="")$t_jumlah=1; mysql_query("INSERT INTO temp(`t_nama`,`t_harga`,`t_jumlah`,`t_total`) VALUES('$nama_b','$harga_b','$jumlah_b','$total_b')"); } //form $get = mysql_query("select …

Member Avatar
+0 forum 0

Hi friends, I have a question regarding the option list in HTML pages.... i have 2 items (class, subclass) each of which have some options and hence i created the drop down lists for the 2 items which when selected by user will go the action page and search for those items in my MySQL db. Each option of my 1st item (class) has its own 2nd item(subclass). So what i want now is, once the user selects the first item from the list immediately the second item list should only display the respective sub-class items of the selected class …

Member Avatar
Member Avatar
+0 forum 6

The End.