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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



b34st1y
Novice

May 21, 2009, 2:14 PM

Post #1 of 2 (351 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.


KevinR
Veteran


May 21, 2009, 3:07 PM

Post #2 of 2 (349 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.

http://perldoc.perl.org/CGI.html

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