Two inter-related questions:
If I'm in PHP page a.php, and I want to switch control to page b.php,
the only mechanism I've come across is to use header('Locatio n:
someURL") ;
This has two drawbacks - it seems inefficient to me - you essentially
have to "bounce" a request/response off the browser to switch between
PHP pages - leaving and returning to PHP just to switch pages, and
also it uses the GET method and, I'd assume, therefore restricts you
on the length of the URL and therefore the number of name/value pairs
you can send before they get truncated.
Q1: Is there an internal PHP server-side page redirection mechanism
that would/could provide a more efficient mechanism for switching
between PHP pages?
Q2: Alternatively, is there a POST equivalent to header("Locatio n:")
that I could use from within PHP to redirect between pages, so that
the number of name/value pairs I could send is unlimited?
---
Rob Tweed
M/Gateway Developments Ltd
Global DOMination with eXtc : http://www.mgateway.tzo.com
---
If I'm in PHP page a.php, and I want to switch control to page b.php,
the only mechanism I've come across is to use header('Locatio n:
someURL") ;
This has two drawbacks - it seems inefficient to me - you essentially
have to "bounce" a request/response off the browser to switch between
PHP pages - leaving and returning to PHP just to switch pages, and
also it uses the GET method and, I'd assume, therefore restricts you
on the length of the URL and therefore the number of name/value pairs
you can send before they get truncated.
Q1: Is there an internal PHP server-side page redirection mechanism
that would/could provide a more efficient mechanism for switching
between PHP pages?
Q2: Alternatively, is there a POST equivalent to header("Locatio n:")
that I could use from within PHP to redirect between pages, so that
the number of name/value pairs I could send is unlimited?
---
Rob Tweed
M/Gateway Developments Ltd
Global DOMination with eXtc : http://www.mgateway.tzo.com
---
Comment