Re: Self-Process php forms or not?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/4/09 10:55 AM, "tedd" <tedd.sperling@xxxxxxxxx> 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.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux