Click to See Complete Forum and Search --> : execute sql command using onclick


tcovert
01-07-2004, 12:44 AM
How do I execute a sql command using onclick?

How do I define the server, database, username and passwword?

The command I want to run is:

insert into orderentry (acctname) values('')

Please let me know ASAP.

TIA for your help.

Kor
01-07-2004, 04:56 AM
I sound confusing to me...

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

haastnooit
01-09-2004, 05:59 AM
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).