PHP questions
Posted: Sat Dec 26, 2009 9:10 pm
I am from java/j2ee, new to PHP, some questions:
1. if I put all functions into functions.php, then how can I call one specified function when submitting a form ? In J2EE, if using Spring framework, we can use different controller to achieve this ?
2. how could I redirect a page ? in java Servlet, we can use redirect/forward , what about PHP ?
3. PHP has filter concept ? if yes ,how to implement it ?
Thanks.
1. if I put all functions into functions.php, then how can I call one specified function when submitting a form ? In J2EE, if using Spring framework, we can use different controller to achieve this ?
2. how could I redirect a page ? in java Servlet, we can use redirect/forward , what about PHP ?
3. PHP has filter concept ? if yes ,how to implement it ?
Thanks.