Hi All,
Curretnly, i have drop down /select box, where i can choose an option (title) from drop down.
I need select box to be replaced by input box where i can enter text (title) manaually.

I have part of code below.

ANY HELP WILL BE HIGHLY APPRECIATED...

$query = "SELECT j.* FROM #__weblinks j inner join #__categories jc on j.catid = jc.id where $cat  j.published='1' AND jc.published='1' ORDER BY $orderStr";
		$db->setquery($query);
		$rows=$db->loadObjectList();
		error_reporting(E_ERROR); 
		$url = $_SERVER['SERVER_URI'];
	
		echo "<form action='" . $url . "' method='post' >";
		echo "<select  name='add' id='add' class='editable-select' ";
		foreach ($rows as $row )
		{
			echo "<option value='" .$row->url. "' /> ". $row->title;
			  echo $module_url;
			
		}
		echo "</select>";
	   
	 
			if ($image !=-1 )
			{
				if ($autodirect ==1)
					echo "<input type='submit' ".$style." id='submit' name='submit' value='".$golabel."' />";
				$image = 'images/stories/'.$image;
				echo "<input type='image' " .$style." src='".$image."' id='submit' name='submit' alt='".$golabel."' />";
			}
			else
			{
				
				echo "<input type='submit' ".$style." id='submit' name='submit' value='".$golabel."' />";
			}


		echo  "</form>";

If you mean a text box to type your title into, then you need to use an input tag of type text for a one-line box or a textarea tag for a multi-line textbox. If you are after a select box that you can type in, that will require some javascript I think. Google should provide plenty of examples.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.