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

Your name:

Reply:


Posted by Rik Wasmus on 11/19/07 18:38

On Mon, 19 Nov 2007 19:29:38 +0100, bruno_guedesav
<bruno_guedesav@yahoo.com.br> 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 "<form name=\"postcomment\" action=\"".HTTP_ROOT."/pages/
> comment.php\" method=\"POST\">\n";
> print "Nome:<br/><input type=\"text\" name=\"nome\" size=\"64\" /><br /
>> ";
> print "Email(obrigatório; não será publicado):<br/><input type=\"text
> \" name=\"email\" size=\"64\" /><br />";
> print "Site:<br/><input type=\"text\" name=\"url\" size=\"64\" /><br /
>> ";
> (...)
> print "</form>\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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация