Alternatives for accessing PHP functions -


currently, i'm developing application using standard php. such, there assorted functions called forms. examples include registration, login, logout, , others.

rather creating separate file each function, i'm using phpscripts.php file in includes folder. execute function html input, pad url ?action=functionname. inside script file, use switch/case tree execute proper function based on s_get['action'] variable.

is there better way implement html calls php functions?

no, correct way interface html form php script. other alternatives include employing url rewriting (to convert /actions/functionname/param ?action=functionname&param=x), basic principle remains same.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -