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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hmdnawaz
Forum Newbie
Posts: 14
Joined: Tue Dec 21, 2010 10:55 pm

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

Post 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?
thecodewall
Forum Commoner
Posts: 33
Joined: Sun Dec 26, 2010 8:37 am

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

Post by thecodewall »

you mean that your form page will not be refresh?
http://codewall.blogspot.com
Post Reply