Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: On click button in php Date: Tue, 19 Feb 2013 11:18:21 +0100 Organization: A noiseless patient Spider Lines: 31 Message-ID: <5123516D.5000302@arnowelzel.de> References: <3e8c6516-17c4-4a29-9f9f-ace88c524074@googlegroups.com> <51208C68.2000406@arnowelzel.de> <2992787.JYnM0pljKP@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: mx05.eternal-september.org; posting-host="aa07ec5af18901f922d01f07faafdb7b"; logging-data="11359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18az0h/B2INu7j2QJxAdKsOZKe+OgAS+Js=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <2992787.JYnM0pljKP@PointedEars.de> Cancel-Lock: sha1:lSjKLPScHeX+4cenQ7Em7/mowpU= Xref: csiph.com comp.lang.php:8397 Thomas 'PointedEars' Lahn, 2013-02-17 21:09: > Arno Welzel wrote: > >> nag, 2013-02-16 03:15: >> [...] >>> [...] >>> but when I click the button (the submit button) nothing is happening. >> >> Of course not. onClick is an event handler and you have to use >> JavaScript there. > > “onclick” is an event-handler attribute (for the “click” event of the DOM), > and unless the HTML version is HTML5, one can use any scripting language in > its value. ECMAScript-based scripting languages like JavaScript are best > supported, though. > > See also: Theoretically - yes. In the real world ECMAScript-based scripting languages like JavaScript are the only useful choice, since none of the current browsers except Internet Explorer support anything else out of the box. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de