Thanks to Brij I solved a problem earlier today - thanks Brij - and I ran into another problem. I suspect that the variable I try to post via a form in the code below, doesn't make it to the next page.
Can anyone help me with this?
Here's the code:
<TABLE BORDER="0" CELLSPACING="5" CELLPADDING="1">
<?
$link = @mysql_connect ("host", "user", "password")
or die ("Anslutningen funkade inte! Ledsen.");
$databas = mysql_select_db("a0088600_db1");
$sql = "SELECT terapeutid, fornamn, efternamn, ort FROM terapeuter WHERE omrade = \"$omrade\" AND sex = \"$sex\"";
$result = mysql_query("$sql");
while($rad = mysql_fetch_array($result)) {
?>
<TR>
<TD ALIGN="left">
<FONT FACE="geneva, verdana, helvetica, sans-serif" SIZE="1" COLOR="#000000">
<FORM ACTION="terapeut.php" TARGET="resultatfonster" METHOD="POST" ENCTYPE="multipart/form-data">
<?
echo $rad[fornamn]." ".$rad[efternamn].", ".$rad[ort];
echo "</TD><TD>";
echo " <INPUT NAME=\"$terapeutid\" TYPE=\"submit\" VALUE=\"Mera info...\">";
echo "<BR>";
}
mysql_close($link);
?>
</FORM>
</FONT>
</TD>
</TR>
</TABLE>