(PHP) header(Location: ...) -
(PHP) header(Location: ...) -
is there way can alter header instead of adding on? example
creating user
create_user.php (a form action.php) -> action.php (switch case phone call function) -> user_controller.php
so user_controller.php, upon successful creation, used header method bring user location, view_user.php.
so url header like
http://localhost/dct/action.php/web/view_user.php?&success=[success]%20user%20is%20created! but want be
http://localhost/dct/web/view_user.php?&success=[success]%20user%20is%20created! without action.php. how go achieving that?
you need utilize url rewriting - depends on setup. can either @ web-server level, or application-level.
php location
Comments
Post a Comment