0

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>";
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by darkagn
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.