HTML form coding problem

Bill Campbell linux-sxs
Sun Oct 9 18:26:50 PDT 2005


On Sun, Oct 09, 2005, David Bandel wrote:
>Folks,
>
>I'm trying to code a form.  After the values are entered and the
>"submit" (calculate) button is pressed, I want to go to the results
>section of the form.
>
>So the results section has an anchor that works:
><a name=results>Results</a>
>
>At the end of the form I'm putting:
><INPUT Type="hidden" name=_target VALUE=#results>
>
>When the calculate button is pressed, the end of the URL line shows:
>&_target=%23results
>If I change the %23 to a # sign, it works, but as the %23 it doesn't.
>
>Anyone know how to keep Apache/FireFox/Perl/whoever from changing the # to %23?

I think you're running into an HTML standard in which is encodes
many ``non-standard'' ASCII characters to their hex equivalent.

What tools are you using to process the form?  I think most of
the standard perl/python/php tools have the ability to map these
back to ascii.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

It is necessary for the welfare of society that genius should be
privileged to utter sedition, to blaspheme, to outrage good taste, to
corrupt the youthful mind, and generally to scandalize one's uncles.
                -- George Bernard Shaw


More information about the Linux-users mailing list