CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
variable as selected Option... list fields

 



Debutant
Deleted

Sep 7, 2000, 7:26 AM

Post #1 of 2 (443 views)
variable as selected Option... list fields Can't Post

hello

onload is called a *.pl, this pl read a *.txt, and print in the html page some var
X, Y,...
I would like to use thoses var as selected options in a select menu.
I tried:
<option selected value="PRIX0">
<!-- document.write(PROD1) // --></option>

but it doesnt works...why?
if you have any idea, i will be glad to hear for you ...
Thanks a lots
Pierre

------------------


fashimpaur
User / Moderator

Sep 7, 2000, 8:53 AM

Post #2 of 2 (443 views)
Re: variable as selected Option... list fields [In reply to] Can't Post

Pierre,

Trouble is: onLoad is a JavaScript Method in
HTML.

Cannot execute a .pl script that way. You must either do a server-side include, or if your web server supports .asp, then you could
use perlscript in an ASP page.

Smile HTH,
Dennis

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives