Page 1 of 1

How can i call a function of another page on submit button o

Posted: Wed Jan 05, 2011 11:50 pm
by hmdnawaz
I have two pages one is db.php and another is form.php.

In form.php i have created a form which contains different fields and a submit button.
But i want to write the queries in db.php.

And when i click on the submit button the insert query in db.php should be executed and insert data in database but the focus remains on form.php.

How can i do this???
Any Idea?

Re: How can i call a function of another page on submit butt

Posted: Thu Jan 06, 2011 12:24 am
by thecodewall
you mean that your form page will not be refresh?
http://codewall.blogspot.com