SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question using Perl in / asthe an html <form>'s action

    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">?

    Thanks in Advance,
    Team 1504!

  2. #2
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    err wow that was from 2012... didn't mean to bump such an old thread.

  4. #4
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No worries, I now know how to do this.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •