Hi Vladimir,

Vladimir D Belousov wrote on 03.03.2005:

>Jan Eden wrote:
>
>>Vladimir D Belousov wrote on 03.03.2005:
>>
>>
>>
>>>Vladimir D Belousov wrote:
>>>
>>>
>>>
>>>>just try:
>>>>
>>>>$q->start_form(-method=>"POST");
>>>>
>>>>
>>>I'm wrong, sorry. Can I see your .htaccess in part of ModRewrite
>>>directives?
>>>
>>>
>>
>>Sure (abbreviated):
>>
>>RewriteEngine on RewriteBase /
>>
>>RewriteRule ^news/?$ cgi-bin/show.pl?id=2310 RewriteRule ^public/?$
>>cgi-bin/show.pl?id=2
>>
>>RewriteRule pages/([0-9]+) cgi-bin/show.pl?id=$1
>>
>>
>>Thanks again,
>>
>>Jan
>>
>>
>From perldoc CGI:
>
>start_form() will return a <form> tag with the optional method,
>action and form encoding that you specify.  The defaults are:
>
>method: POST action: this script enctype:
>application/x-www-form-urlencoded
>
>
>See the SCRIPT_NAME variable from environment. I think that value is
>established to /cgi-bin/show.pl?id=1234

Thanks again for your help. I was finally able to solve the problem by using 
the input for the RewriteRule (pages/1234) as the form's action parameter.

Your hint made me rethink Apache's workflow.

Best,

Jan
-- 
Remember: use logout to logout.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to