Re: I don't get the passing data process...
| From: | Andreas Kossmeier | Date: | Sun, 29 Apr 2001 08:39:37 +0000 |
| Subject: | Re: I don't get the passing data process... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-645@lists.php.net to get a copy of this message | ||
Luc Saint-Elie wrote:
> If in my processing page I do (more logical way.. but clearly wrong
> also because it doesn't work)
>
> ==================================
> : if ($reponse == 2) {
> $op = 'registerok';
> header("Location:
> http://test.bdsmfr.com/index.php");
> ===================================
>
> It is not ok, the index.php file display the index.tpl template in its
> standard form (include file="article.tpl") so apparently the 'op'
> switch is not taken in account
why should this work? the location response-header field is used to
redirect the recipient to a location, so why should your variables be
visible?
http://www.php.net/header
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
BTW: this has really nothing to do with template engines and/or Smarty
and i think this is clearly the wrong mailinglist to discuss this kind
of problems ;)
andreas
--
andreas kossmeier
bergfex.at - http://www.bergfex.at