Re: On click button in php [message #180451 is a reply to message #180449] |
Sun, 17 February 2013 20:09 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Arno Welzel wrote:
> nag, 2013-02-16 03:15:
> [...]
>> <a href="#"><input type="button" onclick="<a href='details.php?$id='
>>> </a>" value="submit" style="margin-left:4.0em;"></a>
>>
>> Problem:
>
> Your problem seems to be, that you really miss fundamental understanding
> of the technologies you use.
Pot, kettle, black.
> [...]
>> 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: <http://PointedEars.de/es-matrix>
PointedEars
--
Sometimes, what you learn is wrong. If those wrong ideas are close to the
root of the knowledge tree you build on a particular subject, pruning the
bad branches can sometimes cause the whole tree to collapse.
-- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom(at)94(dot)75(dot)214(dot)39>
|
|
|