Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: CGI submit running sub routine

by MCS (Monk)
on Sep 01, 2004 at 15:55 UTC ( [id://387570]=note: print w/replies, xml ) Need Help??


in reply to CGI submit running sub routine

Basically, you can only use perl functions with perl... you can't use perl functions in html.

To make this work, I would first check the parameter and if it exists, then print out your information, otherwise just display your form. Alternatively you can just launch a new cgi page, it all depends on what you want to do.

Just remember, your perl code generates html. A drop down list is part of that html. You can take the parameter of that dropdown and parse it in another form or the same form but you have to resubmit the form. (which you can do on selecting an item from a dropdown)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://387570]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found