Hello,
I wrote a quick perl script that just takes in user input from a <input /> in a separate html document.
There is a .pl file that I know works fine, but I want to connect it to the html form in the html document.
Is ally I have to do set the form's action attribute to where that perl file is located like I would with a php script that deals with html form data?
In other words, if both the script and the html file are in the same dir on my server then I have to set <form> to <form action="script.pl" method="get">?
Kind of. It depends on your web server settings. If you allow perl scripts to be run in any directory, then it will work after you chmod 0755 the .pl file given that you are parsing everything correctly. I would also suggest you post instead of get.
Bookmarks