Do you know where your variables are? | |
PerlMonks |
Re: CSS for printing and tell-a-friend scriptsby blue_cowdawg (Monsignor) |
on Dec 07, 2004 at 16:09 UTC ( [id://412931]=note: print w/replies, xml ) | Need Help?? |
My first bit of advice so you kind sir or madam is to not lead off a question like that. It tends to grate on folks and may result in questions going unanswered. IOW: don't grovel! :-) First I'd recommend you go on over to the Tutorials page and learn how to research for answers on your own.
The first question.
BIG HINT: what you are looking for is how to read
the CGI headers and find what page has referred the browser
to your script. IIRC the variable is
Here is an html you can use to test what I am talking about: and a Perl/CGI script with very minimal functionality:
CAVEAT: Don't leave that code on your production environment as there is some serious information leaking going on there. It is there for demonstration purposes only. Once you figure out where the user is coming from page wize the rest is using Mail::Send or MIME::Lite or other CPAN module to to send your mail after you have processed it with CGI and some glue code. The second question. Other monks here have done a bang up job answering that one. The answer lies in the use of CSS and the media attribute (directive?). With that information in your hands go forth, code and conquor!
In Section
Seekers of Perl Wisdom
|
|