...

View Full Version : login form using a function



moos3
08-21-2007, 07:09 PM
is there a way to handle submit on a login form to make the action call a php function? because I have all kinds of functions that I have wrote and I was going to make a handle page for each update, add, delete. I was wondering if there is away to call those functions using action. Suggestions?

Inigoesdr
08-21-2007, 07:40 PM
If you mean after you submit the form you can use an action that includes what you want to do on the next page: page.php?do=function
Or you can use ajax if you don't want to reload the page, or just want to use php to process something that Javascript can't.

NancyJ
08-22-2007, 12:29 AM
Just set the value of your submit button differently for each action then use a switch to determine which function to call.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum