Mailing List Archive

strange $fdat
snippet in index.html
<form action="foo.epl" method="GET">
<input name="test" size="30" maxlength="25">
<input type="submit" value="Search" name="string">
</form>

snippet in foo.epl
[- delete $fdat{string} ; -]
<a href="foo.epl?page=1&[+ [ %fdat ] +]">page 1</a>

When I submit index.html with test = #,
snippet in foo.epl becomes:
<a href="foo.epl?page=1&test=#">page 1</a>

foo.epl accepted the character '#' in $fdat{test} for the first time.
Why is it that when I click the link (page 1), only
$fdat{page} was received by foo.epl (for second time.

any work around? thanks.
Re: strange $fdat [ In reply to ]
><a href="foo.epl?page=1&[+ [ %fdat ] +]">page 1</a>
>
>When I submit index.html with test = #,
>snippet in foo.epl becomes:
><a href="foo.epl?page=1&test=#">page 1</a>
>

Oops, the # must be escaped, because it has a special meaning in a url. Goto
epchar.c, line 229 and change

{ '#' , "" }, /* &#35; Number sign */

to

{ '#' , "%23" }, /* &#35; Number sign */

then it should correctly escaped and your page should work

Gerald