Re: Self-Process php forms or not?

From: Date: Sun, 04 Oct 2009 18:03:54 +0000
Subject: Re: Self-Process php forms or not?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-298568@lists.php.net to get a copy of this message
On 10/4/09 10:55 AM, "tedd" <tedd.sperling@gmail.com> wrote: > At 3:39 PM +0100 10/4/09, MEM wrote: >>> i don't think so. if the user requests the page "a_form.php" then the >>> server >>> will normally execute the a_form.php script regardless whether the form >>> was >>> submitted or not. >>> >>> to display a blank form, the user probably requests a_form.php with the >>> GET >>> method and probably without any GET parameters. the script will run but >>> $_POST['submit'] is not set. so the script you show above will echo >>> "Sorry, >>> couldn't process the form". that will likely confuse the user. >>> >> >> >> Ok... but please have a look here, I've uploaded and tested that code, and I >> can assure you that the message doesn't appear when the form first load: >> >> http://pastebin.com/m21078fe3 >> Note: if you use: "copy to clipboard" option the numbers will gone. >> >> >> >> Regards, >> Márcio > > The problem, as I see it, is that you are not > willing to write a simple example and get that to > work. Instead, you complicate things beyond your > ability to understand. > > My advice, step back -- write a simple example > that does what you want and then expand it. i agree that it does seem a bit as though Márcio is in such a hurry to make something work that the tasks of learning and understanding the fundamentals are being left aside. while that's maybe understandable, it's a bit frustrating when we're trying to explain the fundamentals.

« previous php.general (#298568) next »