This topic is locked
[SOLVED]

 Drop Down Menu

4/7/2019 11:54:40 AM
PHPRunner General questions
T
Tempus_Erus author

I have the following code to which works fine, however the inserted code on the list page is a few pixels higher - in essence out of line.
I assume this is possibly the class - which I have the class form control.
Is this the correct class? Currently using bootstrap, flatly (theme) CSS is normal.
Any help always appreciated.
Thanks
$str= "<select class='form-control' onchange=\"window.location.href=this.options[this.".

"selectedIndex].value;\"><option value=\"\">Please select</option>";

$strSQL = "SELECT name FROM database";

$rs = db_query($strSQL);

while ($data = db_fetch_array($rs))

$str.="<option value='documents_ra_policies_list.php?qs=".

$data["doc_tag_name"]."'>".$data["doc_tag_name"]."</option>";

$str.="</select>";

echo $str;

admin 4/9/2019

Can we see a screenshot that explains the issue?

T
Tempus_Erus author 5/9/2019



Can we see a screenshot that explains the issue?


Appears the print icon was having affect. moved the code to top bar and all is fine.

N
nasa 5/31/2019



I have the following code to which works fine, however the inserted code on the list page is a few pixels higher - in essence out of line.
I assume this is possibly the class - which I have the class form control.
Is this the correct class? Currently using bootstrap, flatly (theme) CSS is normal.
Any help always appreciated.
Thanks
$str= "<select class='form-control' onchange=\"window.location.href=this.options[this.".

"selectedIndex].value;\"><option value=\"\">Please select</option>";

$strSQL = "SELECT name FROM database";

$rs = db_query($strSQL);

while ($data = db_fetch_array($rs))

$str.="<option value='documents_ra_policies_list.php?qs=".

$data["doc_tag_name"]."'>".$data["doc_tag_name"]."</option>";

$str.="</select>";

echo $str;


Replace

class='form-control' by

id='form-control'