Does PHP Have an Equivalent of Java's RequestDispatcher.forward?

后端 未结 7 2119
南笙
南笙 2021-02-06 03:32

In Java I can write a really basic JSP index.jsp like so:

<% request.getRequestDispatcher(\"/home.action\").forward(request, response); %>

相关标签:
7条回答
  • 2021-02-06 04:23

    Concepts Redirect and Forward like in Java, can be achievable in PHP too.

    Redirect :: header("Location: redirect.php"); -- (URL in address bar changes)

    Forward :: include forward.php ; -- (URL unchanged at address bar)

    Its manageable with this & other programming logics

    0 讨论(0)
提交回复
热议问题