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¶m=x), basic principle remains same.
Comments
Post a Comment