The text of this article is not in this database — only its details are. Read it on the old site: Dropdown List in PHP
16 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Dropdown List in PHP
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Dipa MehtaPosted Jul 15, 2019, 2:22 PM
Nice explanation of dropdown list.
Tk MahantaPosted Jan 4, 2019, 4:22 AM
Best Explanation..and real time Example
Tk MahantaPosted Jan 4, 2019, 4:21 AM
Very Nice Articles.
SerdarPosted Jun 16, 2016, 5:41 PM
How can I get value of selected list item ??
SerdarPosted Jun 16, 2016, 4:38 PM
please use <?php ?> , not like <? ?> :))
Asfend YarPosted Feb 29, 2016, 5:59 AM
good
Meghan ReedPosted Apr 1, 2015, 10:43 AM
Hello! Has anyone figured out how to fix the drop down simply giving >
Deepak BlPosted Jun 13, 2014, 4:07 AM
hello Vineeth, i want to enable typing on dropdown list..can u help me?
Charles Van HoutenPosted May 12, 2014, 10:52 AM
Your code has errors as the dropdown selection box is only populated with the < sign and not the values from the database. This is what I think the first comment was trying to express to you. regards
Gopal KanishkaPosted Feb 28, 2013, 11:24 AM
The drop down list does not get populated.
Vineet Kumar SainiPosted Jan 9, 2013, 7:03 AM
Hi Vista , What is problem ?
vista vistaPosted Jan 9, 2013, 3:03 AM
hi. it's not working. why why why? help me.
syafril shahPosted Dec 7, 2012, 1:53 PM
Hi Vineet Kumar Saini, i just wanna ask you how to make a "dynamic product list" in php? for example when user click the QUICK VIEW link for view full detail about the product, then the page of detail information will shown in a same page..thanks.
atira csPosted Dec 4, 2012, 2:19 PM
can u give me ur email...i have problem with my coding this is my email :[email protected]
Vineet Kumar SainieditedPosted Nov 30, 2012, 6:03 AMEdited Nov 30, 2012, 6:05 AM
Hi Atira, What do you want ? Please tell me ? You can copy my code then run. If you get a problem then tell me?
atira cseditedPosted Nov 30, 2012, 3:35 AMEdited Nov 30, 2012, 3:37 AM
can u check my coding.my database called disiplin.the output when i click the arrow it just publish > <html><head><title>Dynamic Drop Down List</title></head><BODY bgcolor ="pink"><form id="form1" name="form1" method="post" action="<?php echo $PHP_SELF; ?>">Employee List :<select Emp Name='NEW'><option value="">--- Select ---</option><?mysql_connect ("localhost","root","");mysql_select_db ("displin");$select="disiplin";if (isset ($select)&&$select!=""){$select=$_POST ['NEW'];}?><?$list=mysql_query("select * from employee order by emp_id asc");while($row_list=mysql_fetch_assoc($list)){?><option value="<? echo $row_list['emp_id']; ?>"<? if($row_list['emp_id']==$select){ echo "selected"; } ?>><? echo $row_list['emp_name']; ?></option><?}?></select><input type="submit" name="Submit" value="Select" /></form></body> </html>