263 Topics
|
|
How do i write php code for getting field from mysql as dropdown in php, and, also to display the related records of selected option in dropdown from database |
|
I am trying to retrive value from database in dropdown and to display the datas related to the selected option. I am new to php, Please Help me to write php code for the above . |
|
I have 2 drop down. In 2nd drop down items are added dynamically based on 1st drop down selection. Now I want selected value of 5th subject to store in MySQL table. I am not able to get the value of option which is selected in 2nd drop down. How … |
|
Hello, I am using Yii framwork. What I want to do is, I have a dropdown and one button. on button click, i want to send selected value of dropdown in url. <div class='box'> Change to another Skill Type<br> // IT IS DROPDOWN WITH VALUES AND ID of this input … |
|
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 … |
|
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 … |
|
My code is like this below HTML Code : <select multiple="multiple" size="5" name="religion[]" id="religion" class="txtareamultifield" ondblclick="moveOptions(document.MatriForm.religion,document.MatriForm.RIGHTRELIGION,1);fnAnyChk(document.MatriForm.religion,document.MatriForm.RIGHTRELIGION);fnGothraChk();fnModifySubCasteChk(this.value);otherreligion();" style="width:355px; height:90px; font-size:13px;"> <option value="" selected>Any</option> <option value="Hindu">Hindu</option> <option value="Muslim-Shia">Muslim - Shia</option> <option value="Muslim-Sunni">Muslim - Sunni</option> <option value="Muslim-Others">Muslim - Others</option> <option value="Christian-Catholic">Christian - Catholic</option> <option value="Christian-Orthodox">Christian - Orthodox</option> <option value="Christian-Protestant">Christian - Protestant</option> <option value="Christian-Others … |
|
I have one zend form.In this form i have on dropdown and blank div. In view page on dropdown change blank div fill another dropdown. I want to validate div's dropdown so that without selecting second dropdown form could not submit. Plz suggesssst any help |
|
Hello, I have select(/dropdown) list.Below is code <div id="complete_form"> <b>Skill Type :</b> <select id="skill_type_name" onchange="load_div()"> <option value="">Select</option> <option value="Language">Language</option> <option value="Database">Database</option> <option value="Framework">Framework</option> </select> <div id="id_skill_name" onchange="load_other_skill()"> <b>Skill : </b> <select id="skill_name" name="Skill[skill_id]"> <option value="">Select</option> <option value="test language 1">test language 1</option> <option value="test db 2">test language 2</option> <option value="test fw … |
|
Hello, I want to creat array/s in javascripts. But array/s numbers (how many to arrays to be created) is depend on dropdown div length. I have calculated length of dropdown list using `$("#skill_type_name option").length)` But how to create arrays in javascripts in foor loop. array names can be array1[] array2[] … |
|
what i want to do is show form based on the value of a dropdown list. like if value 2 then what appears is two forms of the same form. example: <div> How many? <select name="options"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> </div> <div id="test"> </div> <form id="form1"> <table> … |
|
I have this particular snippet.. newcell.innerHTML = table.rows[0].cells[i].innerHTML; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = ""; break; case "checkbox": newcell.childNodes[0].checked = false; break; case "select-one": newcell.childNodes[0].selectedIndex = 0; break; case "number": newcell.childNodes[0].value = ''; break; } the switch above makes the newly added rows to reset the value from the … |
|
I have <div id='name' onchange='load_div()'> <b>Car Name : </b> <select name="carlist" form="carform"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">Audi</option> </select> </div> <div id='name2' onchange='load_div()'> <b>second Car Name : </b> <select name="carlist" form="carform"> <option value="volvo2">Volvo</option> <option value="saab2">Saab</option> <option value="opel2">Opel</option> <option value="audi2">Audi</option> </select> </div> Here I have a link called "Add" … |
|
I have an HTML dropdown list which i'm populating from a database. My question is how can i retrieve the value of a selected item from this dropdown list using AJAX? Thanks in advance. |
|
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. … |
|
i have a dropdown box and i already upload the value from dropdown selection to database. after uploading i want to cange the dropdown value how should i do,please help me. thanks in advance |
|
I am new to php. I want to insert the value selected from dropdown list in mysql database. i have two tables named tbl_user and tbl_domain. how may i storea value in tbl_domain selected from dropdown list. can any1 help me pls? here is ma code. pls tell me whats … |
|
I am trying to pass some data from the database to a few textboxes and textarea but i am currently stuck. I would really appreciate some help to solve this issue. this is the code i am working with. I am able to pass it to the table but not … |
|
I have created this script using a HTML form and a PHP script which allows the user to search through my database for an event using the Venue and category fields which are scripted as dropdown boxes and the Price and finally by event title, as shown via the code … |
|
me have 5 columns and one of them i wand to bind with dropdown list and one with chek box .how it is possible plz |
|
I am learning codeigniter when i create rule for validate dropdown box but its not given me error message **View File** <?php $option = array('0' =>'[ Please select an Experience Level ]', '1' => 'Without experience', '2' => 'Internship', '3' => 'Less than one year', '4' => 'One year', '5' … |
|
Hi- I am creating a basic form that posts data to a mySQL database. One of my tables, called "sites", contains the following information: site_name, site_id. I have created a dynamic dropdown menu of the sites (so the dropdown menu references the table "sites" to display all site names in … |
|
Hello programers i wanna change the background color for the the div by choosing the color from dropdownlist if there is any ideas , :) |
|
Hello How can i do Multiple dropdown box that can relation to each other dynamicaly Using Javascript Any one can suggestion me. Thank You. |
|
Hi i have a textarea. Text area is to enter label names. When i enter first letter of the label name the matching labels appear as dropdown so that they can select the label from the drop down instead of typing the whole name. This drop down is a div. … |
|
Dear All, im testing out a way to get data from database depending on the drop down selection and displaying the data into a table by using php. now my first issue which is really really frustrating me because i've done this dozens of time is that i get `Notice: … |
|
Working on wordpress.. Want to set homepage when i click the templates. ..Templates are under dropdown menu. |
|
hey guys. so whats really getting me stumped is the amount of salutations theres are and as some of you are web developers i would just like your opinions/suggestions. so you have a basic form that asks for salutations, first name, last name etc. salutations there are lots and sometimes … |
|
function makeSelection(icon, id) { if(!icon || !id) return; var elem = icon.elements[id]; if(!elem) return; var val = elem.options[elem.selectedIndex].id; opener.targetElement.value = val; this.close(); } this form used to select from a dropdown but i want to make it select from a click button <td>Icon1 Here<br /><input type="button" value="Select" id="1000" onclick="makeSelection(this.form, 'icon');"></td> … |
|
Hi All First post. PHP/PostgreSQL newbie... I'm trying to create a simple web page with a dropdown menu. The values for the dropdown menu are retrieved from a database table. The code I've got is... <html> <body> <select> <?php $db = pg_connect("host=hostname port=5432 dbname=dbname user=user password=password") or die ("Could not … |
The End.