RE: Self-Process php forms or not?

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

 



> 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


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