Re: Open form in new window

[email protected] (Tim Streater)
Newsgroups php.general
Message-ID <[email protected]>
On 04 Mar 2013 at 20:17, Paul M Foster <[email protected]> wrote: 

> On Mon, Mar 04, 2013 at 05:39:00PM +0000, Tim Streater wrote:

>> Personally I never submit forms. I use ajax to communicate with PHP
>> scripts and do something with the data that is returned by the script.
>> You can see a simple example at http://www.clothears.org.uk

> I'm trying to figure out where the net gain in that is. The PHP file
> being called via AJAX is doing its processing on the server either way.
> So it appears the only difference is an asynchronous Javascript/AJAX
> call or a synchronous PHP call (on a standard PHP form submission). What
> am I missing?

ISTM it's better for the user if, rather than reloading a whole page, you can get some bits of data from the server and use them to just alter the parts of the page that need updating.

--
Cheers  --  Tim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.