About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Script Linking...

   Browse by title articles:
   What is hot:

Escape Code

Script Linking

Search & Replace

Print

Arrays

Common Operators

External
Understanding Relational Databases: Foreign Keys
More Strings
Page Length - How long is too long?
Prev articles1 2 3456Next articles



Script Linking


Computer & I'net articlesScript Linking

by David Stanley    



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.

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.




-----------------

Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.






Articles

Auto & Trucks

Business

Computer & I'net

  ·General

  ·Apache

  ·CSS

  ·Database

  ·Hardware

  ·HTML

  ·Javascript&DHTML

  ·Linux

  ·MySQL

  ·Operating System

Perl / CGI

  ·PHP

  ·Programming

  ·Publishing

  ·Search Engines

  ·Software Problems

  ·SSI

  ·Tips & Tricks

  ·Utilities

  ·Web Design

Family

Food & Drink

Gardening

Health

Other

Pets

Psychology

Spiritual

Travel

Women

 Calculators

Capital gain




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com