Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Printing from HTML/Perl

Reply
Thread Tools

Printing from HTML/Perl

 
 
Gary
Guest
Posts: n/a
 
      11-06-2003
I need to read a table from MySQL into a Perl script (already working) and
then be able to print fields from the table selectively using a print button
which is part of the HTML/CGI.

Can someone point me in the direction of how to do this.

Help appreciated
Gary


 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      11-07-2003
Gary wrote:
> I need to read a table from MySQL into a Perl script (already
> working) and then be able to print fields from the table
> selectively using a print button which is part of the HTML/CGI.
>
> Can someone point me in the direction of how to do this.


Learn how to create CGI scripts. "perldoc CGI" should better be
included in your studies.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
 
 
 
Gary
Guest
Posts: n/a
 
      11-07-2003
"Gunnar Hjalmarsson" <> wrote in message
news:EDBqb.32653$...
> Gary wrote:
> > I need to read a table from MySQL into a Perl script (already
> > working) and then be able to print fields from the table
> > selectively using a print button which is part of the HTML/CGI.
> >
> > Can someone point me in the direction of how to do this.

>
> Learn how to create CGI scripts. "perldoc CGI" should better be
> included in your studies.
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
>


Please do not post cryptic RTFM answers. If you do not know keep quiet.

Gary



 
Reply With Quote
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      11-07-2003
Gary wrote:
> Gunnar Hjalmarsson wrote:
>> Gary wrote:
>>> I need to read a table from MySQL into a Perl script (already
>>> working) and then be able to print fields from the table
>>> selectively using a print button which is part of the HTML/CGI.
>>>
>>> Can someone point me in the direction of how to do this.

>>
>> Learn how to create CGI scripts. "perldoc CGI" should better be
>> included in your studies.

>
> Please do not post cryptic RTFM answers. If you do not know keep
> quiet.


But I know rather well.

If you are not ready to study the docs, please stop posting to Usenet
groups that discuss the Perl language. Go here instead:

http://jobs.perl.org/

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
Gary
Guest
Posts: n/a
 
      11-07-2003

"Gunnar Hjalmarsson" <> wrote in message
news:T5Fqb.32664$...
> Gary wrote:
> > Gunnar Hjalmarsson wrote:
> >> Gary wrote:
> >>> I need to read a table from MySQL into a Perl script (already
> >>> working) and then be able to print fields from the table
> >>> selectively using a print button which is part of the HTML/CGI.
> >>>
> >>> Can someone point me in the direction of how to do this.
> >>
> >> Learn how to create CGI scripts. "perldoc CGI" should better be
> >> included in your studies.

> >
> > Please do not post cryptic RTFM answers. If you do not know keep
> > quiet.

>
> But I know rather well.
>
> If you are not ready to study the docs, please stop posting to Usenet
> groups that discuss the Perl language. Go here instead:
>
> http://jobs.perl.org/
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
>

What do you know 'rather well'. Certainly not English!

You spend all your time posting about how not to post or trying to appear
smart.

i.e.

Roy Johnson wrote:
> First of all, this is no longer a valid public newsgroup. You will
> reach more people at comp.lang.perl.misc


To which group OP posted as well yesterday. A case of multi-posting.
You answered in clpmisc as well, btw.

To Stuart: Do *not* multi-post!

======

What is the point - Again just keep quiet please or your noise may put off
real answers !

I am sure I am not the first to notice your complete lack of any real
assistance in favour of static and bravado.

Please do not bother to reply, as this really is a waste of my time when I
could be reading perldoc !

Gary


 
Reply With Quote
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      11-07-2003
Gary wrote:
> What do you know 'rather well'. Certainly not English!


True. But I know how to put a spoke in lazy people's wheels.

Please read this in the Perl FAQ:
http://theoryx5.uwinnipeg.ca/CPAN/pe..._Usenet__.html

Then you'd better learn some Usenet manner or go away!

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
Gary
Guest
Posts: n/a
 
      11-08-2003

"Gunnar Hjalmarsson" <> wrote in message
news:YfPqb.36936$...
> Gary wrote:
> > What do you know 'rather well'. Certainly not English!

>
> True. But I know how to put a spoke in lazy people's wheels.
>
> Please read this in the Perl FAQ:
>

http://theoryx5.uwinnipeg.ca/CPAN/pe..._Usenet__.html
>
> Then you'd better learn some Usenet manner or go away!
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
>


Isn't there someone else you should be telling about not posting to Usenet
groups because in reality you do not know any real answers and are
determined to be of no real help!

PLEASE do not bother replying again with more about what to read.

BTW That should be Usenet manners ! Check www.dictionary.com and you will
find the correct plural of manner. I suggest you read all about this before
responding to anything else.

Gary


 
Reply With Quote
 
Jürgen Exner
Guest
Posts: n/a
 
      11-08-2003
Gary wrote:
> Isn't there someone else you should be telling about not posting to
> Usenet groups because in reality you do not know any real answers and
> are determined to be of no real help!


*PLONK*

PROUD TO PLONK
Life's too short to be trolled, spammed or get upset about lame
posters! Make the Net a better place by ignoring those who annoy you.
Don't be annoyed; keep your calm. Be proud to plonk.

jue


 
Reply With Quote
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      11-08-2003
Jürgen Exner wrote:
> Gary wrote:
>> Isn't there someone else you should be telling about not posting
>> to Usenet groups because in reality you do not know any real
>> answers and are determined to be of no real help!

>
> *PLONK*
>
> PROUD TO PLONK
> Life's too short to be trolled, spammed or get upset about lame
> posters! Make the Net a better place by ignoring those who annoy
> you. Don't be annoyed; keep your calm. Be proud to plonk.


Well, I haven't bothered to learn how to filter certain posters, but
in this case I'll follow the rest of your advice from now on.

Thanks, Jürgen!

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
GIMME
Guest
Posts: n/a
 
      11-18-2003
The simple answer to your question is :

#!/usr/local/bin/perl
print"Content-type: text/html\n\n";
print<<EOF;
<html>
<body bgcolor=ivory>
Hello World
</body>
</html>
EOF

Personally, I don't use the CGI module to create controls, only
to fetch parameters.



"Gary" <> wrote in message news:<6zzqb.7997$G7.7877@okepread04>...
> I need to read a table from MySQL into a Perl script (already working) and
> then be able to print fields from the table selectively using a print button
> which is part of the HTML/CGI.
>
> Can someone point me in the direction of how to do this.
>
> Help appreciated
> Gary

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 2 11-27-2010 12:12 PM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:52 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:50 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-21-2007 05:28 AM
brochure printing,online yearbook,printing,books printing,publishing elie Computer Support 0 08-18-2007 10:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57