PHP, MySQL and possibly Javascript problem

Jan 27, 2002
149
0
71
I want a button which, when clicked, sends a mysql query then closes the window.

Anyone got any ideas?

It doesn't matter if the button is just a picture or even just a hyperlink, as long as it does the job!

Thanks
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
1. button submits page
2. server receives submission, runs query
3. server returns a page with some javascript
4. browser loads page, runs javascript, closes window

That's my first guess. The other thing you could do is submit the form and close the window at the same time maybe. Try checking out the javascript that runs when you get a fusetalk pop up like for replying, quoting or starting a new topic.