Advertisement

02.15.2008 at 05:29PM PST, ID: 23167807
[x]
Attachment Details

simple problem with php and html combo box

Asked by deepakabc in PHP for Windows, PHP Scripting Language

Tags: php

i using this code to fetch information from database and display on the comobox.

first time its display right but when i refresh from firefox comobox selected value change in 10.

it's bit wiered and i don't why it's happening...

i want to retain those selected value.

Thanks


another quick one how do i change combo box in uneditable box so no body can change itStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
for ( $counter = 0; $counter <= 10; $counter +=1)
				{
					if($counter==intval($data["priority"]))
					{
print "<option value =".$data["priority"]."
selected=\"selected\">".$data["priority"]."</option>";
//print "<option  \"SELECTED\">Opel</option>";
						
					}
					else
				{
print "<option value=\"volvo\">".$counter."</option>";
					}
				}
	print "</select> </td>";
[+][-]02.15.2008 at 05:33PM PST, ID: 20907503

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.15.2008 at 05:45PM PST, ID: 20907554

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.15.2008 at 06:08PM PST, ID: 20907671

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.15.2008 at 11:23PM PST, ID: 20908680

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP for Windows, PHP Scripting Language
Tags: php
Sign Up Now!
Solution Provided By: shirazti
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628