RE: Self-Process php forms or not?

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

 



When you have it all in one file, the first thing you do is check to see if this request was submitted from the form. If not, you send the blank form. If it was, you validate all of the data. When a validation fails, you add error messages and resend the form with any fields that passed the validation already filled in. When validation succeeds, process and move on. No muss, no fuss.

Bob McConnell

-----Original Message-----
From: Sándor Tamás (HostWare Kft.) [mailto:sandortamas@xxxxxxxxxxx] 
Sent: Friday, April 24, 2009 8:53 AM
To: 'PHP-General List'
Subject: Re:  Self-Process php forms or not?

I think the main advantage is that if something goes wrong processing the 
datas, you can show the form again without redirecting again.

And if you have to change the behavior of the page, you have to change only 
one file instead of two.

SanTa

----- Original Message ----- 
From: "MEM" <talofo@xxxxxxxxx>
To: "'PHP-General List'" <php-general@xxxxxxxxxxxxx>
Sent: Friday, April 24, 2009 2:34 PM
Subject:  Self-Process php forms or not?


I'm trying to understand the advantages behind opting by using a
Self-Process PHP Form, instead of having a form and then point the action of
the form to another .php page.

Can anyone point me some resources about this. Why using one instead of
another. What are the main advantages?



Regards,
Márcio


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


-- 
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