CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
reading a variable from a webpage into perl



May 21, 2009, 2:14 PM

Post #1 of 2 (433 views)
reading a variable from a webpage into perl Can't Post

does anyone know how to read a variable from a webpage into a perl script? For example, If I click a button on a webpage...the variable $apple = 5. if I click a different button, $apple = 10.


May 21, 2009, 3:07 PM

Post #2 of 2 (431 views)
Re: [b34st1y] reading a variable from a webpage into perl [In reply to] Can't Post

The communication between a web document and a perl script is normally done with a CGI form (or html form) and a CGI script. Perl comes with the CGI module to perform the behind the scenes duties necessary to get the document and your perl script communicating.

Judging by the way you asked the question (and I could be wrong) I think that using the CGI module will be way beyond your current level of experience. But give the documentation a good looking over and see if you can figure out the basics and move on from there.

Hopefully you already know how to actually write a CGI script (or edit one) and upload it to a webserver and get it running.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives