Re: Code problem: Form will only work under GET method

Re: Code problem: Form will only work under GET method

am 19.11.2007 19:38:52 von luiheidsgoeroe

On Mon, 19 Nov 2007 19:29:38 +0100, bruno_guedesav
wrote:

> This has ocurred before, but if the person had find a way to solve it
> or not, I've got no clue. So, here I am to ask for help.
>
> I've created a form via pure PHP, basically a bunch of prints together
> making a form. But somthing strange goes on: the form will only pass
> it's fields forward under method GET, but not on POST.
>
> Here's a snippet of code, just the basics:
>
> print "

> comment.php\" method=\"POST\">\n";
> print "Nome:

>> ";
> print "Email(obrigatório; não será publicado):
> \" name=\"email\" size=\"64\" />
";
> print "Site:

>> ";
> (...)
> print "
\n";

I'm not going to check that quote-escape festival just yet. Try to
validate the page it creates with the w3c HTML validator, most likely you
error will show up there.

If after that it still doesn't work/there are no errors, what form does
your code actually output, and how does your webserver log the request?
--
Rik Wasmus