473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Printing from HTML/Perl

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
Jul 19 '05 #1
9 2576
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

Jul 19 '05 #2
"Gunnar Hjalmarsson" <no*****@gunnar.cc> wrote in message
news:ED*******************@newsb.telia.net...
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

Jul 19 '05 #3
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

Jul 19 '05 #4

"Gunnar Hjalmarsson" <no*****@gunnar.cc> wrote in message
news:T5*******************@newsb.telia.net...
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
Jul 19 '05 #5
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

Jul 19 '05 #6

"Gunnar Hjalmarsson" <no*****@gunnar.cc> wrote in message
news:Yf********************@newsc.telia.net...
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
Jul 19 '05 #7
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
Jul 19 '05 #8
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

Jul 19 '05 #9
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" <re*****@nslnet.net> 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

Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Arthur | last post by:
Hi Everyone, I'm having a real hard time with this. Maybe some smarter people can assist. I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be able to print Postscript, bold,...
10
by: Andrew | last post by:
I am making a web site and I am using ASP because of its templating capabilities. My footer is an include file, for obvious reasons. I can't use an include file for the header, because, while the...
2
by: Henrik J?nsson | last post by:
Hi! I have a problem that I can't find a solution to. I have a perl script that generates reports from our NCR system for our intranet. The NCRs are displayed on a single html page. Now I...
0
by: Nigel Norman | last post by:
Although I have written some perl ,I have obviously missed something. I have created a database for my local tennis club, which can be updated etc etc. I thought it would be a good idea to for...
0
by: dutch | last post by:
Greetings. I'm attempting to print an existing html file to a network printer. I tried opening a socket connection using the printer ip and port. With this, I was able to print the file...
11
by: patelxxx | last post by:
When I running the following .cgi script, not sure why each print statement is not printing on a new line, even after entering \n. Browser=IE6 See Perl code below: #!C:/perl/bin/perl.exe -w ...
0
by: nikhilgargi | last post by:
Requirement: I need to provide printing capability in a C# desktop application that I am developing The documents that need to be printed can be in Rich Text Format (RTF) or HTML. Custom...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
2
by: dissectcode2 | last post by:
Hi - I know almost nothing about Perl but do program in other languages. I am looking at Perl that I have to modify slightly by printing a "file not found" message if a file is missing from the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.