tags:

views:

66

answers:

3
+7  A: 

I suggest studying AJAX.

There are also JavaScript libraries out there that make AJAX easy to use. jQuery is one.

webbiedave
+1  A: 

You'll need to use Ajax for that.

John Conde
+1  A: 

Javascript works on the client side, so it is not possible to add php script, however you can use ajax for this purpose, from which u can interact with ur database.

For this u had to make a seperate php script and you can call it through your javascript function, which work instantly without reloading the page

nik