www.webdeveloper.com
Results 1 to 2 of 2

Thread: Perl CGI Post Form help

Hybrid View

  1. #1
    Join Date
    Jan 2013
    Posts
    1

    Perl CGI Post Form help

    Hello. I am new to all web scripting except JavaScript. I have been looking for perl tutorials on how to post a form. What I have found is no use. I just want to know how to get the contents of the form by form input names and write them to a file on the users computer. Also, do I have to compile perl to a cgi file, or can I just save it as either a .pl or .cgi file. Just for an example here is a sample HTML code:
    HTML Code:
    <!DOCTYPE html>
    <html>
    <head>
      <title>POST Example</title>
    </head>
    <body>
    <form method="POST" action="ThePerlFile">
      <input type="text" name="value"/>
      <input type="submit" name="post" value="Submit It"/>
    </form>
    </body>
    </html>

  2. #2
    Join Date
    Oct 2007
    Location
    Vienna, Austria
    Posts
    389
    write them to a file on the users computer
    You can't do that with Perl. Ask Google about JavaScript file system API to do that.

    Otherwise, try to follow a tutorial. Handling forms with Perl is a completely basic topic, covered a thousand times in different places, and written better than I ever could. Also, it requires a lot of details, like server configuration, so it's too long to simply spell out in a simple answer like this.

    Try this one (though I don't have experience with it) www.cgi101.com/learn/

    I personally prefer to work with a MVC framework named Catalyst. It's easy to start with. If you're interested, start here: http://search.cpan.org/perldoc?Catalyst::Manual::Tutorial

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles