I am new to embperl and I am having a problem that I can't seem to find
an answer to.  I am hoping someone here can help.

I am trying to post data to an empbperl program.  Using method="get"
works fine, but method="post" fails.

Here is an example.  First the form in a.html:

------------
<html>
<head></head>
<body>
<form method="get" action="/embperl/b.html">
Name: <input type="text" name="name">
<br>
Age: <input type="text" name="age">
<br>
<input type="submit">
</body>
</html>
------------


Now, the embperl file, b.html:

------------
[-
  $name = $fdat{name} || '';
  $age = $fdat{age} || '';
-]
<html>
<head></head>
<body>
<pre>
name = [+$name+]
age  = [+$age+]
</pre>
</body>
</html>
------------


Using method="get" works exactly as I expect.  When I change to
method="post", I get a popup window:
        Netscape: Error
        The document contains no data.

Here is the section from my httpd.conf file turning on embperl:

------------
<Location /embperl>
  SetHandler    perl-script
  PerlHandler   HTML::Embperl
  Options       ExecCGI
</Location>
------------


I would appreciate any help in finding a (simple, I hope) solution
to this problem.

Many thanks in advance,
James

-- 
James Lee     ==  [EMAIL PROTECTED]                           Perl Training
Onsight Inc.  ==  http://www.onsight.com/                  Perl Development
                                                          Internet Training
                                                       Internet Development

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to