hello brad
thanks for your help
im getting another problem now
Im stuck on trying to get the values position in my form correctly
i have put the code in below, but the values appear above my form not in the field i want them too!
Ive cut some of the form cut off coz its quite a long form, but to get the idea
$db = mysql_connect("database", "username", "password");
mysql_select_db("username",$db);
$sql = 'SELECT type_of_acred FROM acreditation';
$acred = mysql_query($sql) or die ('MySQL Error: ' . mysql_error());
echo("<form action= \"" . $PHP_SELF . "\" method=\"POST\">");
echo("<table width=\"626\" border=\"1\" align=\"center\">");
echo("<tr>");
echo("<td width=\"160\">Programme UCAS code: </td>");
echo("<td colspan=\"4\"><input type=\"text\" name=\"ucas\" size=\"10\"></td>");
echo("</tr>");
echo("<tr>");
echo("<td>Validation Notes: </td>");
echo("<td colspan=\"4\"><textarea name=\"Validnotes\"></textarea></td>");
echo("</tr>");
echo("<tr>");
echo("<td>Acreditation Body:</td>");
echo("<td colspan=\"4\"><input type=\"text\" name=\"AcredBody\"></td>");
echo("</tr>");
echo("<tr>");
echo("<td>Acreditation Type:</td>");
echo("<td><select name=\"TypeAcred\" multiple></td>");
While ($result = mysql_fetch_array($acred) ) {
echo '<option>' . $result[0] . "</option>\n";
}
echo("</select>");
echo("</tr>");
echo("<tr>");
echo("<td>Acreditation Start Date:</td>");
echo("<td colspan=\"4\"><input type=\"text\" name=\"AcredStart\"></td>");
echo("</tr>");
this code is making the acred type values appear above the form not in the place i want, which is Acreditation Type part.
Could you please advise me some more on correcting this please
thanks again for the help
snoopgreen