Below part of code of .

Below codes shows drop down/select box, when option is selected it is redirected to the url.

What i would like to do is i like input box instead drop down/select box. USer can enter title ( option of dropdown/select box) manually.

PHP Code:

$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 style='display:none'  name='add' id='add'";
            if (
$autodirect == 1
                {
                     echo 
" onChange='this.form.elements";
                     echo 
"[\"submit\"].click();' />";
                }
            else
            {
                echo 
" />";
            }        
        if (
$blank == '1')
            echo 
"<option value='' />";
        if (
$custom != '')
        {
            echo 
"<option value='' />".$custom;
            if (
$separator != '')
                echo 
"<option value='' />".str_repeat($separator,strlen($custom));
        }

        foreach (
$rows as $row)
        {
            echo 
"<option value='" .$row->url"' /> "$row->title;
        }
        echo 
"</select>"
Any Help will be highly appreciated..

Ramesh chaudhary