Hi.
I'm very new to Perl and have a basic question. How can I convert special
characters contained in a string to hexadesimal numbers. I'm trying to
access a cgi program but the string I use with the post method contains
quote marks, question marks, etc. and the program crashes.
I have:
$st
Thanks Tim.
Your answer solves many problems to me. But I have a further question.
Sometimes a question mark apears in the middle of a string like that:
$string = "/cgi-bin/search.pl?term=who?&lang=english";
where "who?" is a unit and the question mark is part of it. Although I try
to escape
sorry if you get this twice, not sure it got posted the first time!
> I've got a nice script that uploads images.Lovely.
> but it renames the images, according to their associated record number,
> which all works fine, but occasionally i want to replace the image.
> now, i know the folder is wr
I've got a nice script that uploads images.Lovely.
but it renames the images, according to their associated record number,
which all works fine, but occasionally i want to replace the image.
now, i know the folder is writable to, but for some reason, it won't allow
the script to either overwrite
>>Sometimes a question mark apears in the middle of a string like that:
>>$string = "/cgi-bin/search.pl?term=who?&lang=english";
>>where "who?" is a unit and the question mark is part of it. Although I try
>>to escape the question mark in "who?" and I get its hexadecimal number, I
>>don't get th
Hi all,
Why if I use:
print $q->header;
print$q->start_multipart_form;
the result does not contain the result of the first line, but only the line?
And if I ttype:
print $q->header;
print $q->start_HTML;
print $q->start_multipart_form;
The result contains only the full header with bu
Are you thinking that CGI stops you using your previous method?
If you need to use some of CGI's features, yet include, for example a table
that doesn't use any dynamic content,
then you CAN still use
print start_html;
print From: "GsuLinuX" <[EMAIL P
Hi,
On Wed, 6 Mar 2002, Octavian Rasnita wrote:
> Why if I use:
> print $q->header;
> print$q->start_multipart_form;
>
> the result does not contain the result of the first line, but only the > line?
print $q->header; prints out HTTP headers like 'Content-type: text/html'
and not html code
Octavian Rasnita wrote:
> Why if I use:
>
> print $q->header;
> print$q->start_multipart_form;
>
> the result does not contain the result of the first line, but only the > line?
from perldoc CGI:
header() returns the Content-type: header. You can
provide your own MIME type if you choo
Dont ask but our servers dont support .SHTML extensions so I need a Java script that
can do some URL Fetching, or data fetching. I have a java script that works a bit,
but can not handle carriage returns in the data file, it will not print if a data file
(the fetched document) has a carriage r
"I need a Java script"
"I have a java script"
This is a mailing list for *Perl* CGI. Do you have a question relating to
Perl CGI? Would you like to share it with us?
John
-Original Message-
From: Fred Sahakian [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 17:23
To: <
Subject: URL Fetc
Hi all,
I hope somebody can help me here. I have a CGI script creating a popup menu
using something like this
print $query->popup_menu('menu_name',
['eenie','meenie','minie'],
'meenie');
Is there a way in perl to submit the form autom
You can add some javascript code to the field's -onchange section.
-Original Message-
From: DUCHATEAU, GABRIEL [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 17:34
To: [EMAIL PROTECTED]
Subject: popup_menu help
Hi all,
I hope somebody can help me here. I have a CGI script creating a po
I have been learning Perl-CGI and is a beginner. I would like to try small projects.
Are there any books/tutorials/web sites where I can find small projects, so that I can
try these exercises ?
Kamali
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Have you been here?
http://www.easystreet.com/~ovid/cgi_course/
>From a beginner's standpoint I think Ovid does a good job.
> -Original Message-
> From: Kamali Muthukrishnan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: small pro
Yes, Since I cant get a PERL script to execute under a .SHTML file anyone know a good
Javascript to do this for this? Im sure PERL programmers come across this. How's
that?
>>> John Edwards <[EMAIL PROTECTED]> 03/06/02 12:23PM >>>
"I need a Java script"
"I have a java script"
This is a mai
> "Fred" == Fred Sahakian <[EMAIL PROTECTED]> writes:
Fred> Yes, Since I cant get a PERL script to execute under a .SHTML
Fred> file anyone know a good Javascript to do this for this? Im sure
Fred> PERL programmers come across this. How's that?
That's a bit like asking on a Toyota mailing l
plz ignore if this is not of interest
but sometimes its better to put a / before quotes in print when doing
html...
it did help me in my restaurant guide mini semester project..
Talha
Carl Franks writes:
> Are you thinking that CGI stops you using your previous method?
> If you need to use some
I am working with some hashes and found that you can maintain an ordered hash
using Tie::IxHash. The server my site lives on does not have this module
installed. Is this module commonly installed on machines? In other words, can I
count on this module being present on some user's server or would
Okay, I created a HTML Form that calls a CGI script.
After the form is submitted it sends out e-mails with
a link inside to certain managers. They follow the
link which is a separate HTML page that calls a
separate CGI script.
Question: I need to keep track of the managers who
follow the link an
Hi Crew:
Here's one--
Im taking in data through a Perl Script with the following conversion:
$value = ~s/Apple/Orange/g;
This is fine for new data, but each time the program is run it's taking all the data
being entered and turning the apples into oranges, any ideas how I get the program to
On 3/6/02 2:25 PM, Fred Sahakian <[EMAIL PROTECTED]> wrote:
> Hi Crew:
Hi Fred,
> Here's one--
>
> Im taking in data through a Perl Script with the following conversion:
>
> $value = ~s/Apple/Orange/g;
>
>
> This is fine for new data, but each time the program is run it's taking all
> the d
Dear All,
I have a cgi script that uploads two files and then it execute a
program using the system call. This program then uses the uploaded
files as input, and then it generates a file that I am interested in
displaying in the web browser. Unfortunately, the system command does
not work and i
>Fliptop had a guestbook one - I'd appreciate the url also b/c I lost
>all of my links when my logic board fried. He may be on the
>beginner's list though?
>
>>I have been learning Perl-CGI and is a beginner. I would like to
>>try small projects. Are there any books/tutorials/web sites where
we're using Spreadsheet::WriteExcel module,
i have for example a file test.pl which creates excel file on the same path.
test.pl is owned by reserv account.
$ ls -l test.pl
-rwxr-xr-x 1 reserv other 734 Mar 7 11:54 test.pl
$ ./test.pl
it successfully creates the file excel.xls on the same pat
25 matches
Mail list logo