Re: Question
| From: | Andy Hoffman | Date: | Wed, 15 Nov 2000 19:43:00 +0000 |
| Subject: | Re: Question | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3879@lists.php.net to get a copy of this message | ||
Francois Allard wrote:
> example :
>
> you are in www.visic.com/index.html and you want to go to another page like
> test.html
> you only put <cflocation url="test.html"> and it redirect to
> http://www.visic.com/test.html. I don't want to use the
> <form> tag because
> it's like conditionnal page depending on the option you select.
>
> Andy Hoffman wrote:
>
>
> What does the variable CFLOCATION give you within Cold Fusion? The full URL
> of the current file? (not familiar with cf markup, myself)
try using the header() function in php... let's say you have index.php and you want
this file to redirect the user to another page called test.php, then you'd do something
like this...
Inside index.php:
<?php
header("Location: test.php\n");
?>
Similar to the ASP Response.Redirect... only better :) Special note, all headers MUST
be sent prior to ANY HTML output from your script, or the header call will fail.
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com