javascript, php and html commands

From: Date: Fri, 01 Feb 2002 14:01:43 +0000
Subject: javascript, php and html commands
Groups: php.general 
Request: Send a blank email to php-general+get-83124@lists.php.net to get a copy of this message
My somebody help me solve the code below ? A have a COMBO called ~edicoes~ and i must to use the option selected to open an URL as shown below : <SELECT name="edicoes">
     <?
$sql = "select num_edicao from edicao where flg_edicaocorrente = 'S'"; $result = @mysql_db_query("iasp", $sql) or die ($sql); $reg = mysql_fetch_array($result); $edicao = $reg["num_edicao"];
       $sql = "select * from edicao where num_edicao <= " . $edicao . "
order by num_edicao desc"; $result = @mysql_db_query("iasp", $sql) or die ($sql);
       while ($reg = mysql_fetch_array($result)) {
         $num_edicao=$reg["num_edicao"];
     ?>
  <OPTION value="http://www.iasp.br/iasponline.php?edicao=<?=$num_edicao?>")> Edição <?=$num_edicao?> / <?=$reg["dat_edicao"]?> <br>
     <?}?>
     </OPTION>
     </SELECT>
     <p><font size="1">
<a href="http://www.iasp.br/iasponline.php?edicao=javascript:document.forms['edicoes'].options[document.forms['edicoes'].selectedIndex].value"> <img border="0" src="baok.gif" width="17" height="17"> </a> </font> </p> the href must refer to the option selected in the COMBO. thank so much eduardo melo computer programmer <html><DIV> <DIV> <DIV> <H5>--</H5> <H5>Eduardo Fco Melo</H5> <H5>Celular : 19-9743-0804</H5> <H5>R. Antônio Biasi Filho, 74&nbsp;- Hortolândia - SP - CEP 13184-040</H5> <H5>Currículum&nbsp;disponível no&nbsp;endereço&nbsp;abaixo :</H5> <H5><A href="http://www.apinfo2.com/cgi-bin/roteador.cfm?prof=59821&amp;pcargo=Analista Programador">www.apinfo2.com/cgi-bin/roteador.cfm?prof=59821&amp;pcargo=Analista Programador <BR></H5></A></DIV></DIV></DIV></html> _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

« previous php.general (#83124) next »