In article <[EMAIL PROTECTED]>, Rich wrote:
> ------=_NextPart_000_00BF_01C35E82.8A144710
> Content-Type: text/plain;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> Beginners,
> I'm about to write my first Perl script that will function to send this =
> page.  When the user clicks 'send this page' button I'm going to open a =
> script generated html page called /send_this_page.pl where the user can =
> fill out the email address(es) to send the page to.=20
> 
> I think I have a good idea how to do this except for one thing.  How do =
> I get the page <title></title> from the html page the script is being =
> called from and then create temporary variable that I can print the =
> title on /send_this_page.pl and also make it the subject of the outgoing =
> email?

Rich,

Here are some pointers.

First, You can get the page name through your web server environment
variables. I would google for "cgi environment variables" or "Apache
environment variables" to find the details of what you need. 

To get the title, you could use a simple regular expression, or a
full-on HTML parsing module. I like HTML::TokeParser::Simple. It may be
overkill for this job, but I figure it may be easier to get going with
than debugging my own RE for possible variances in the HTML.

If you are still stuck, I would ask a more specific question, or post a
sample of the code you have so far. 

Good luck,

        Mark
(a  bicycle commuter from Richmond, Indiana).

> Rich Points
> RD Webmaster http://ReclaimDemocracy.org
> Bike For Peace http://BikeForPeace.org
> Boulder Bicycle Commuters http://BoulderBicycleCommuters.org

--
http://mark.stosberg.com/ 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to