Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Flash - Perl! The nightmare continues
From: Jan Oosterhuis
Date: Fri, 21 Apr 2000 16:38:59 +0100

It looks like a problem with the execution permission.
Have you set the vistors' permissions correct?
Do a "CHMODE 755 test.pl".

>Hi all
>
>I am having major problems sending a highscore to a text file located on my
>ISP's server using a simple perl script.
>As an experiment I have just created a form to send the data to the perl
>script and I am getting the following msg
>
>see: http://www.clubinlondon.co.uk/Form.html
>
>This is the html of the form:
>
><HTML>
><BODY>
><FORM METHOD="POST" ACTION="/scripts/test.pl">
>
><PRE>
>First Name <INPUT TYPE="text" NAME="fname" MAXLENGTH=15 SIZE=15>
>
>Last Name <INPUT TYPE="text" NAME="lname" MAXLENGTH=20 SIZE=20>
>
>E-Mail Addr <INPUT TYPE="text" NAME="email" MAXLENGTH=35 SIZE=35>
>
><INPUT TYPE="submit" VALUE="Send Mail!">
><INPUT TYPE="reset" VALUE="Clear Form">
>
></PRE>
></FORM>
></BODY>
></HTML>
>
>And my perl script is
>
>#!/win32app/perl/bin
>
>
># Get the input
>
>read(STDIN, $temp, $ENV{'CONTENT_LENGTH'});
>
># Split the name-value pairs
>
>@pairs = split(/&/, $temp);
>
>foreach $item (@pairs){
>
> ($key,$content)=split(/=/,$item,2);
> $content=~tr/+/ /;
> $content=~s/%(..)/pack("c",hex($1))/ge;
> $fields{$key}=$content;
>
>}
>
>print "Content-type:text/html\n\n";
>
>print "<HTML>\n";
>print "<BODY BGCOLOR=#FFFFFF>\n";
>print "<CENTER>\n";
>print "THANK YOU<BR>\n";
>print "$fields{fname} $fields{lname}</BR>";
>print "I will write<BR>\n";
>print "you at<BR>\n";
>print "$fields{email}<BR>\n";
>print "</CENTER>\n";
>print "</BODY></HTML>";
>
>Please can anyone shed some light on why I am getting this error
>
>Thanks
>
>Paul Steven
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Get the last 100 messages from the flasher list NOW
> http://www.chinwag.com/flasher/last100.shtml
>
> Flash books http://www.chinwag.com/flasher/books.shtml
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpatchinwag [dot] com

--
Jan Oosterhuis
Faculty of Educational Science and Technology
University of Twente, Enschede, The Netherlands
e-mail: J [dot] Oosterhuisatedte [dot] utwente [dot] nl

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Flash - Perl! The nightmare conti, Paul Steven

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]