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>";