Re: Feature for php6

From: Date: Sat, 08 Dec 2007 05:19:46 +0000
Subject: Re: Feature for php6
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-651@lists.php.net to get a copy of this message
On Dec 8, 2007 5:14 AM, Shannen Name <shannen_name@hotmail.com> wrote: > While discussing mysql and php with a friend of mine we came up with an idea. > onClick() for php. > Example: > instead of having > print "<form action='test.php' method=post> > <select name="test"> > <option value="test">option1</option> > <option value="test">option2</option> > <option value="test" selected="selected">option3</option> > <option value="test">option</option> > </select><input type='submit' > value='Update'></form>"; > > it could just have the options and no update just and > onClick({$_POST['test']}) > mysql_query('update {$_POST['name']}'); > > > Basically for people who don't know AJAX. This should be done in userland, not at the core level. -Hannes

« previous php.webmaster (#651) next »