PDA

View Full Version : how can i execute a perl script that accepts agruments from a web page


B2004
07-29-2004, 04:58 PM
Hi,

Is it possible to run a perl script from a web page? I have a perl script that runs from the command line and accepts 2 arguments, i wish to great a gui instead so that the user can input the 2 parameters into text boxes and then click a button to run the script.

any ideas on how to start this that would be great

i am thinking that if i pass the arguments over cgi into a new script and then excute the first script from inside the second one???-right or wrong??

Calilo
07-29-2004, 05:09 PM
sure you can do that, you just need a host that allows you the exec of cgi scripts, son then you just make an html form that passes the info to the cgi script, you only need one cgi script (the one you have), you only have to add some lines so the script can retrive the information submited by the form.

this tutorial seem good, i haven read it, just google for it, and looks quite complete, you should take a look, or maybe someone can send another one.

http://www.cgi101.com/book/

Calilo