[PHP] javascript, php and html commands

2002-02-01 Thread Eduardo Melo




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

 pfont 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



htmlDIV
DIV
DIV
H5--/H5
H5Eduardo Fco Melo/H5
H5Celular : 19-9743-0804/H5
H5R. Antônio Biasi Filho, 74nbsp;- Hortolândia - SP - CEP 13184-040/H5
H5Currículumnbsp;disponível nonbsp;endereçonbsp;abaixo :/H5
H5A 
href=http://www.apinfo2.com/cgi-bin/roteador.cfm?prof=59821amp;pcargo=Analista 
Programadorwww.apinfo2.com/cgi-bin/roteador.cfm?prof=59821amp;pcargo=Analista 
Programador BR/H5/A/DIV/DIV/DIV/html

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] JavaScript, PHP and HTML

2001-02-02 Thread Augusto Cesar Castoldi

I have a .html page, that is "called" (openfile)  by .php script. I did
that to the designer have more freedon.

But know I want to but an JavaScript to verify if a date/hour is a valid
format for MySQL.

Where should I put the JavaScript? In .php or .html?

Or I should check the date and hour on .php script?

thanks,

Augusto Cesar Castoldi


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] JavaScript, PHP and HTML

2001-02-02 Thread kaab kaoutar


hi!
if u wanna use javascript the code should be added in html!
but it's better to use php for checking date and hour !
As long  as u use php technologie get rid of these client side stuff till 
it's necessary!

cheers

From: Augusto Cesar Castoldi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] JavaScript, PHP and HTML
Date: Fri, 2 Feb 2001 09:16:00 -0200 (EDT)

I have a .html page, that is "called" (openfile)  by .php script. I did
that to the designer have more freedon.

But know I want to but an JavaScript to verify if a date/hour is a valid
format for MySQL.

Where should I put the JavaScript? In .php or .html?

Or I should check the date and hour on .php script?

thanks,

Augusto Cesar Castoldi


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]