By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,244 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,244 IT Pros & Developers. It's quick & easy.

Safari and Perl

P: n/a
bob
I hope this is the right group to ask. I need help from a safari
guru.
I seem to have problems getting safari web browser to execute perl
scripts.

The code I have is pretty standard.
My html code is

<form action="cgi-bin/webre.pl" name="form1" method="post"></form>
<textarea name="" cols="60" rows="5" id=" "></textarea>
<p> <input type="submit" id=" " value="Submit"> <input
name="Reset" type="reset" id="Reset" value="Reset"> </p>

The perl is code is also standard.

$input = <STDIN>;
print "For $input";
This works for Netscape and IE. But it's not responding in Safari.
Does anyone know what I'm doing wrong? Thanks.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
bob wrote:
The code I have is pretty standard.
Sorry, but it's not - it's pretty broken.
My html code is

<form action="cgi-bin/webre.pl" name="form1" method="post"></form>
<textarea name="" cols="60" rows="5" id=" "></textarea>
<p> <input type="submit" id=" " value="Submit"> <input
name="Reset" type="reset" id="Reset" value="Reset"> </p>
What you have above is a form element that contains no input elements,
followed by a bunch of input elements that aren't enclosed in a form.
The perl is code is also standard.


I could say a lot about that, too, but this is an HTML group. Let's just
say that reinventing the CGI.pm wheel is certainly *not* the normal way
of doing things.

sherm--
Jul 20 '05 #2

P: n/a
In article <51**************************@posting.google.com >,
bob <ut****@hotmail.com> wrote:
I seem to have problems getting safari web browser to execute perl
scripts.


Web browsers don't execute CGI scripts written in Perl (or in any other
language, for that matter). CGI scripts are executed by the *server*.
They generate HTML code that the server sends to the browser. The browser
renders the HTML code the same way regardless of whether it comes from a
static page, or a CGI script, or ASP, or PHP, or whatever.

--
Jon Bell <jt*******@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.