954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sticky dropbox

Below is SOME code from my drop down box class.

I would like to make the drop down box sticky so that when a user fills out the form and makes a mistake, or leave out a certain field, the values he/she selected from the drop down box remain intact with the reload.

function tooString()
	{
		$text="<tr><td><b>".$this->drophead."</b></td></tr>
				<tr><td></td><td><b>".$this->label."</b></td>
				<td>
				<select name='".$this->name."'>";
				
				
                                

                           foreach($this->options as $option)
		$text.="<option      value='".$option."'>".$option."</option>";
                           

                           
                                   
		$text.="</select>
				</td>
				</tr><tr><td></td></tr>";
		return $text;
	}


}
?>
sastudent
Newbie Poster
16 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: