[EMAIL PROTECTED] (T3tsu0) writes:
> sub send_mail {
> open(MAIL,"|$mail_prog -t") || &error("unable to send mail to:
> $to_name - $to_addr");
[...]
> close(MAIL);
you really want to put error checking on the close() too. In many
cases you won't be told until then if the open fa
Hi Kamali,
I was encountering the same problem, till one of the gurus in this forum
adviced me to change to Apache. I am using Apache 1.3.24 i think and it's
working fine as a fiddle with no bugs encountered so far in my cgi
adventure.
U can try installing it as well, I am running it on Win 98,
Hi,
I am having a slight problem whereby I need to quote the individual params of my cgi
string.
I need to configure 2 steps in order to retrieve the params of my cgi-string and then
quote it in ' '
my $sex = $q->param("sex_question");
$sex = qq('$sex');
print "$sex";
Result : 'male' or '
Kamali:
If you installed PWS, you can see a small icon in your taskbar near to your
clock. If you don't see the icon, go to start -> programs -> accesories ->
Internet Tools -> Personal Web Server and run the Personal Web Server Icon.
Second, don't call your cgi from your command line!!! Open your
You might want to try using the input line separator system variable
"$/". By default it is "\n", but you can set it to whatever you like
e.g.
$/ = " "; #This makes the newline character a whitespace
so then
$testValue1 = "a b";
might be what you want to accomplish, I'm not sure,
Hope this hel
Hello,
I was wondering whether someone might be able to help me with the following
problem:
How do I replace all instances of a newline in a string in Perl with the
literal value "\n" (minus quotes). For example, if I have the string
$testValue1 = "a
b";
how can I change it to
$testValue1 =
This is a function I've used in the past that works.
tet
Where:
$mail_prog= '/usr/bin/sendmail';
sub send_mail {
local($from,$to_name,$to_addr,$subject,$content) = @_;
open(MAIL,"|$mail_prog -t") || &error("unable to send mail to:
$to_name - $to_addr");
print MAIL
Aman Raheja [[EMAIL PROTECTED]] quoth:
*>Hi all
*>I am trying to send a mail with the following code and the last print
*>statement doesn't print, ie, the mail is not sent.
*>This code is called on submitting a form on the web
*>
*>open(MAIL, "/usr/sbin/sendmail -oi -t") || di
Probably, it's your query. Should be DBD::Mysql
Also, you're using the DBI module to interface with the DBD::mysql, right?
If not, download it and install it and give it a try. There should also be a
Perl mailinglist for it ([EMAIL PROTECTED], or something close) that you
can get help with mysql.
It didn't work either way as suggested
using -t only
or
changing the delimiting tag with print statetent
I tried to do the same on the command line and it works. I wonder what is
missing here.
Help is greatly appreciated
Aman
>From: "Aman Raheja" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], [EM
Hi all
I am trying to send a mail with the following code and the last print
statement doesn't print, ie, the mail is not sent.
This code is called on submitting a form on the web
open(MAIL, "/usr/sbin/sendmail -oi -t") || die "Can't open mail";
print MAIL <";
---
On Tuesday 09 April 2002 09:22 pm, p satheesh kumar wrote:
> Dear Mr. Brain
>
> Thanks for your immediate response. I tried with what you have
> suggested. But it is still giving error message as "can't find
> string terminator "'" anywhere before EOF at friend.pl line 51".
> Can you please sugges
>>> [EMAIL PROTECTED] 04/10/02 10:49AM >>>
Hello,
I've encountered a really weird problem.
I wrote a module a little over 1000 lines. When I've added another
subroutine, I've got a "Missing right bracket error" at the end of
file. After spending some time counting brackets in a dozen of lines
(n
Hello,
I've encountered a really weird problem.
I wrote a module a little over 1000 lines. When I've added another
subroutine, I've got a "Missing right bracket error" at the end of
file. After spending some time counting brackets in a dozen of lines
(nothing was missing, in fact) I've removed s
Thanks Carl, it's finally working!
Just seems like I couldn't find your way of defining the cookie variable off
the web, esp from wiley or stein, i tried using their method but I just
couldn't retrieve it.
Million Thanks!
- Original Message -
From: "Carl Franks" <[EMAIL PROTECTED]>
To:
Hi,
Let's say if I create a cookie with $questions and $answers value pairs where
$questions consists of q1, q2, q3, q4, q5, while $answers consists of a1, a2, a3, a4,
a5.
I have no problem in printing out every value of a cookie by using
my %answers = $q->cookie("my_cookie");
if(%answers)
{
Pedro Santos wrote:
> I'm trying to build a database where users can send a description and an
> image to the database. Whenever I access the database trought my a perl
> script my browser should show me the description and the image.
> For the description I can do this without any proble
Hi I'm Pedro and I'm just starting to work with MySQL and Perl.
I'm trying to build a database where users can send a description and an
image to the database. Whenever I access the database trought my a perl
script my browser should show me the description and the image.
For the descript
Have you tried the following?
my %answers = $q->cookie("my_cookie");
print "$answers{q1} $answers{q2} $answers{q3}"; #etc...
Carl
> Let's say if I create a cookie with $questions and $answers value pairs
> where $questions consists of q1, q2, q3, q4, q5, while $answers consists of
> a1, a2, a3,
I edited the register and mapped the .pl as well as teh .cgi extensions. Rebooted the
machine. The PWS can display a HTML page. It has problems when it gets to the CGI
file.
I tried to do the
perl -c first.cgi
at the command prompt after chaning the directory my
Daniel Falkenberg wrote:
> I am just playing around with forms at the moment. What I want to do is
> have user enter data into form fiels then I want to validate that
> entered date. So far I can do things as basic as validating if fields
> contain characters and so forth. But what I want to d
Hi,
Let's say if I create a cookie with $questions and $answers value pairs
where $questions consists of q1, q2, q3, q4, q5, while $answers consists of
a1, a2, a3, a4, a5.
I have no problem in printing out every value of a cookie by using
my %answers = $q->cookie("my_cookie");
if(%answers)
The first line of the script must start with the shebang
#!/perl5/bin/MSwin32-x86
You should not have a comment above it, otherwise the operating system tries
to use the program "Path to perl with shebang symbol" instead of the perl
program
Carl
>
> Thanks for your immediate response. I tried
WinXP... ActivePerl 5.6.. weight 180lb
Thanks for the Win help( strange Territory) ... I'm a Unix guy :-)
I found and installed DBD:mysql.ppm and installed the mod with a command
line call per PPM..
However a ppm query * of my Win Perl install shows all my modules except
DBD:mysql... Yet my
24 matches
Mail list logo