Hello,
I have a form with a <SELECT> and on submit it runs a php code that:
1. gets fields from a table by a certain order
2. outputs the result to a HTML table
The final result has several tables (each one corresponds to an item on the SELECT).
I wonder if it's possible to implement HTML anchors on this code?
How can I relate an option selected to an anchor calling?
Eg:
from the HTML form:
<form action="glossResultII.php" method="get" target="mainFrame">
<select MULTIPLE name="gsearch" SIZE="2">
<option value="1">Hardware</option>
<option value="2">Software</option>
</select>
relate to the PHP result table:
printf("<TR><TD><FONT SIZE=\"5\" FACE=\"Tahoma\" color=\"#000033\"><A NAME=$type_name></A><B>");
printf("$type_name</B></FONT></TD></TR>");
I tried to use a case but it didn't work:
switch($gsearch){
case "1" : printf("<A HREF=\"glossresultII.php#Hardware\" target=\"mainFrame\" name=\"Hardware\"></A>");break;
case "2" : printf("<A HREF=\"glossresultII.php#Software\" target=\"mainFrame\" name=\"Software\"></A>");break;
}
If anyone can give me an hint on how to get this working...
TIA
Arabela