As far as I know, you can not execute anything using javascript, you can just aply for a server-side application using a submit action (post or get).
The 3-rd part executing command is up to the way that server-side application is build, is not a javascript manner.
So, I think that onclick() event handler can only send some values or a request to a server-side application, using methods such us document.name_of_form.submit() and document.name_of_form.action
@haastnooitJan 09.2004 — #u can't do anything like that clientside and i wouldn't even post that to a different page people can find out details about your database by just looking at the query (tablenames and/or fieldnames in that table).