B
Bart van den Burg
Hi
I´m currently building a new page, and instead of
http://.../page.pl?param1=val1¶m2=val2
I'm using
http://.../page/val1/val2
then in .htaccess:
RewriteEngine On
RewriteRule ^page/(\d+)/(\d+)$ site.pl?page=page¶m1=$1¶m2=$2
This works perfectly fine. in my script i can access the parameters using
the param() function.
The problem however is, when i have a form like this:
<form action="page/val1/val2" method="post">
<input type="text" name="param3" value="val3"/>
<input type="submit" value="go!"/>
</form>
i can't access param1 and param2 from my script anymore!
Long story for a short question: What can I do, so that i can access those
parameters again, but still making the form method="post"?
(I'm not really sure whether this is due to Perl or not, but i hope you know
the answer...)
I´m currently building a new page, and instead of
http://.../page.pl?param1=val1¶m2=val2
I'm using
http://.../page/val1/val2
then in .htaccess:
RewriteEngine On
RewriteRule ^page/(\d+)/(\d+)$ site.pl?page=page¶m1=$1¶m2=$2
This works perfectly fine. in my script i can access the parameters using
the param() function.
The problem however is, when i have a form like this:
<form action="page/val1/val2" method="post">
<input type="text" name="param3" value="val3"/>
<input type="submit" value="go!"/>
</form>
i can't access param1 and param2 from my script anymore!
Long story for a short question: What can I do, so that i can access those
parameters again, but still making the form method="post"?
(I'm not really sure whether this is due to Perl or not, but i hope you know
the answer...)