Chomp/Chop << Script Linking >> Environments
There are different ways to link to a Perl script which depends on what you will have it doing or how you have your web page setup.

The first method is to REGULAR link it. You can use a normal link to send the vistor to your Perl script.
<a href="/cgi-bin/filename.cgi"> Click here </a>
You can use this same method to pass some pre-set variables as well...
<a href="cgi-bin/filename.cgi?key1=value1&key2=value2"> Click here </a>
The information starting at the ? will be processed by the Perl script. That part comes later in these tutorials.

Another method of information passing is by using a FORM area on your web page. The part that deals with this is the ACTION and METHOD properties of the starting form tag.
<form action="/cgi-bin/filename.cgi" method="post">
The ? pre-set variable may also be added onto the end of the URI in the ACTION value as seen above in the normal linking. With forms though, this type of pre-setting can also be done by using a HIDDEN line.

Need to brush up on creating forms? Click here!

And yet another way of activating a Perl script is by using an SSI call.
<!--#include virtual="/cgi-bin/filename.cgi" -->
So those are the most common methods used to get the information into the Perl script or to activate a Perl script page.
Chomp/Chop << Script Linking >> Environments

Advertise in the banner along the top, Click here!

Valid XHTML 1.0 Transitional Valid CSS! Text Link Ads