this time i'm having a problem with a dropdown menu i wish to create for my site.
webserver info:
php5
mssql
adodb usage a possibility
what i basicly want to do is to create a menu that hold various server names and ads it to the dbase
when submitted.
but right now i will settle for getting the thing to actually show up.
i have tried a lot on this and i never got it to show up even once.
this is what i have so far:
Code: Select all
if ((isset($_GET['toevoegen'])) && (isset($_GET['toevoegen']))) {
echo "\n <form action=\"index.php?pagename=servinv&save=1\" method=\"POST\">".
"\n <table>".
"\n <tr>".
"\n <th>".
"\n Server Naam:".
"\n </th>".
"\n <td>".
$servers = array( 'DC0001', 'SR0001', 'SR0003','SR0004','SR0005','SR0007',
'SR0008','SR0010','SR0022','SR0025','SR0026','SR0077','SR0078');
// $servers = str_replace(" ", " ", $servers);
"\n \"<SELECT name=servers>
foreach ($servers as $value){
<OPTION value='.$value.'>'.$value.' </option>'}"
'</select>' \"".
"\n </td>".
"\n <th>".
"\n Displaynaam:".
"\n </th>".
"\n <td>".
"\n <input type=\"text\" tabindex=\"5\" name=\"displaynaam\" />".
"\n </td>".
"\n </tr>".what i eventually want to do is get the names from a database and after that it needs to add the name
to another database.
if a javascript suggestion comes up please post the code that goes with it if you can as i have never worked with javascript before.