team1504 — 2012-02-06T22:19:07-05:00 — #1
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">?
Thanks in Advance,
jshin — 2013-02-21T20:19:31-05:00 — #2
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.
jshin — 2013-02-21T20:31:32-05:00 — #3
err wow that was from 2012... didn't mean to bump such an old thread.
team1504 — 2013-02-24T17:57:56-05:00 — #4
No worries, I now know how to do this.