osition witha Lasso site, which I am considering php-ing.
>> I need to do conditional redirects.
>>
>> George P, Edinburgh
>>
>> - Original Message -
>> From: "Andrew Penniman" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>&
Good to hear. How's fusebox working for you?
Andrew Penniman wrote:
>The Steve Edberg (option #2) and Michael Kimsal suggestions to use
>ob_start() output buffering work like a charm. Thanks so much! I would
>have been a long time coming before I mad this connection on my own.
>Guess I need
The Steve Edberg (option #2) and Michael Kimsal suggestions to use
ob_start() output buffering work like a charm. Thanks so much! I would
have been a long time coming before I mad this connection on my own.
Guess I need to hone my archive querying skills...
I think it would be _really_ swell if
I learn something every day, here :)
According to my McGraw-Hill HTML Programmer's Reference [please, no
messages about HTML not being 'programming'!], the META tag _should_
only occur in the container. Of course, we all know how
closely browsers adhere to the HTML specs ;P
-steve
On Tue, 11 Sep 2001, Jason Brooke wrote:
> > Right off the top of my head, you have three options that I can see:
> >
> > (1) Rewrite the code to avoid any output before the redirect.
>
> I'd recommend this one myself
Me too, I can't think of a valid reason to use a Location header while
hav
At 08:11 AM 9/10/01 -0700, Steve Edberg wrote:
>Right off the top of my head, you have three options that I can see:
>(3) Use a META REFRESH tag. For example:
>
>
>
>where 1 is the time (in seconds) before you want the redirect, and 'page.php' is
>where you want the redirect to. Of cours
As others have mentioned, output buffering is
what you want to look at.
I've been doing some minor research on CF the past couple weeks,
and it seems that CF, by default, always has output buffering on. While
it's great for allowing redirects/header info to be pushed out wherever
in a script,
> Right off the top of my head, you have three options that I can see:
>
> (1) Rewrite the code to avoid any output before the redirect.
I'd recommend this one myself
jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
Right off the top of my head, you have three options that I can see:
(1) Rewrite the code to avoid any output before the redirect.
(2) Use output buffering (available only in PHP4). I haven't used
this, but check out
http://www.php.net/manual/en/ref.outcontrol.php
(3) Use a META REFRE
ot; <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 10, 2001 3:37 PM
> Subject: [PHP] PHP Redirect in the middle of code?
>
>
> > I am trying to figure out how to use PHP to redirect the user to a new
> > location *after* processing an
>
> George P, Edinburgh
>
> - Original Message -
> From: "Andrew Penniman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 10, 2001 3:37 PM
> Subject: [PHP] PHP Redirect in the middle of code?
>
> > I am trying to f
3:37 PM
Subject: [PHP] PHP Redirect in the middle of code?
> I am trying to figure out how to use PHP to redirect the user to a new
> location *after* processing and most likely outputting a bunch of code.
> Because this redirection would happen late in the game I can't use
> h
I am trying to figure out how to use PHP to redirect the user to a new
location *after* processing and most likely outputting a bunch of code.
Because this redirection would happen late in the game I can't use
header("Location: ".$redirect_to);
I come from a ColdFusion background and am used to C
1 15:45
To: [EMAIL PROTECTED]
Subject: [PHP] redirect
Hi all,
I have the simplest question maybe, but I can't seem to find the answer.
It's friday.
Anybody knows how I can redirect to another url?
greetings
Wilbert
-
Pas de Deux
Van Mierisstraat 25
2526
Guys this stuff is all in the manual. :)
header ("Location: url");
On Fri, 24 Aug 2001, Wilbert Enserink wrote:
> Hi all,
>
>
> I have the simplest question maybe, but I can't seem to find the answer.
> It's friday.
>
>
> Anybody knows how I can redirect to another url?
>
>
> greetin
Hi all,
I have the simplest question maybe, but I can't seem to find the answer.
It's friday.
Anybody knows how I can redirect to another url?
greetings
Wilbert
-
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
Hi,
I have a calendar script which I wrote with the following section of code.
if ($HTTP_POST_VARS["ACTION"]=="DELETE" &&
$HTTP_POST_VARS["MsgId"]!="" &&
ereg("^([0-9])+$",$HTTP_POST_VARS["MsgId"]) ) {
$sqltxt1="delete from CalendarData where ID='".
$HTTP_POST_VARS["M
I add this way to the list:
header("Refresh: 0;url=$myurl"); (it´s really the same that using META
tag!)
Ok, I want to make you note that:
1) echo "";
2) header("Refresh: 0;url=$myurl");
Work fine when sending cookies... (setcookie function)
... while:
3) header ("Location: $myurl");
S
On 20 Jul 01, at 0:03, Doug wrote:
> Ok maybe I'm just retarded and can't find it but I'm looking for a way to
> do a redirect in a php page to another page, similar to asp's
> "response.redirect" function. Is there one in php???
No doubt there's plenty of options... here's what I'm using:
I h
Doug,
Have you tried using a raw header? Something like this:
header ("Location: http://www.site.com/newpage.php";);
or
header ("Location: newpage.php");
more details can be found at:
http://www.php.net/manual/en/function.header.php
Good Luck,
--
Paul Strange
Lead Programmer
Level 67 LC
---
eM
Ok maybe I'm just retarded and can't find it but I'm looking for a way to do a
redirect in a php page to another page, similar to asp's "response.redirect" function.
Is there one in php???
Doug Henry
Hi Victor!
On Fri, 06 Jul 2001, Victor Spång Arthursson wrote:
> Hi!
>
> Still new on PHP, converting from vb$cript, I wonder how I do a
> redirect...
>
> In vbscript:
>
> <%
> response.redirect("page.extension")
> %>
>
> In PHP???
$response->redirect("page");
where:
class Response {
look in manual for HEADER and LOCATION
- Original Message -
From: "Vicor Spång Arthursson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 11:43 AM
Subject: [PHP] Redirect
> Hi!
>
> Still new on PHP, converting from vb$cript,
Hi!
Still new on PHP, converting from vb$cript, I wonder how I do a
redirect...
In vbscript:
<%
response.redirect("page.extension")
%>
In PHP???
Sincerely
Victor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Hi!
Still new on PHP, converting from vb$cript, I wonder how I do a
redirect...
In vbscript:
<%
response.redirect("page.extension")
%>
In PHP???
Sincerely
Victor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
This is not PHP related, but use '_top' as TARGET.
lenar.
""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi!
> how cann i redirect from a frame to a page but in the whole page !
> i mean like href and adding the target!
> Thanks
> ___
I don't remember for sure, but I think for IE you can do this:
Header("Window-target: targetgoeshere");
Header("Location: /whereyouwanttogo.html");
and it will work. I'm pretty sure that works, but maybe I'm not
remembering right.
-philip
In article <[EMAIL PROTECTED]> you write:
>
>Hi!
>how
Hi!
how cann i redirect from a frame to a page but in the whole page !
i mean like href and adding the target!
Thanks
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
PHP General Mailing List
Authentication Question...
My company subscribes to several pay-to-view e-commerce sites that require
htaccess-type authentication. To keep things simple for our users and to
ensure that our users don't use these accounts w/out our permission, we would
like to keep the account IDs and pas
Authentication Question...
My company subscribes to several pay-to-view e-commerce sites that require
htaccess-type authentication. To keep things simple for our users and to
ensure that our users don't use these accounts w/out our permission, we would
like to keep the account IDs and pas
Take a look at: ftp://ftp.isi.edu/in-notes/rfc2617.txt
To receive authorization, the client sends the userid and password,
separated by a single colon (":") character, within a base64 [7]
encoded string in the credentials.
basic-credentials = base64-user-pass
base64-user-pass
Authentication Question...
My company subscribes to several pay-to-view e-commerce sites that
require
htaccess-type authentication. To keep things simple for our users and
to
ensure that our users don't use these accounts w/out our permission, we
would
like to keep the account IDs and passwords
$newloc = "http://www.kameelah.org/eassoft";
Header("Location: $newloc");
die();
-elias
http://www.kameelah.org/eassoft
""Fernando Buitrago"" <[EMAIL PROTECTED]> wrote in message
9aq0a0$jck$[EMAIL PROTECTED]">news:9aq0a0$jck$[EMAIL PROTECTED]...
> Hi.
>
> Tell me te instruction to redirect (link
have a look at the first example found here :
http://www.php.net/manual/en/function.header.php
also check out meta refresh :
http://www.pageresource.com/html/metref.htm
regards,
philip
On Sun, 8 Apr 2001, Fernando Buitrago wrote:
> Hi.
>
> Tell me te instruction to redirect (link) mi pa
Hi.
Tell me te instruction to redirect (link) mi pages, please?
Regards.
Fer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
If the only thing you plan on doing after incrementing your counter is going
to the new page, why not put the target="_blank" in the tag that points
to your script. Then you'll do your counter script and redirect when you're
already in a new window.
--
PHP General Mailing List (http://www.php
List,
I current use something like this to send some one who clicks on my links to
the actual web page.
$row = @mysql_fetch_array($result);
$url = $row["url"];
$ID = $row["ID"];
header("Location: $url");
header("");
And then the hitcounter for that particular ID is incremented, t
SNIP
>
> I mean, of course
> header("Location: page.php");
>
> Must teach fingers to wait for brain to engage :-)
According to RFC2616, 'Location: ' header must be absolute URI (i.e.
http://example.com/test.html), most browser works with relative URI, though.
'Content-Location: ' can be both ab
On Tue, 27 Feb 2001 15:15, David Robley wrote:
> On Tue, 27 Feb 2001 14:58, Peter Houchin wrote:
> > > can some one offer a suggestion please ... i have a
> >
> > if ($update) {
> > $result=foo;
> > }
> >
> > in that if statement i want to redirect them to another page after it
> > has processed t
On Tue, 27 Feb 2001 14:58, Peter Houchin wrote:
> > can some one offer a suggestion please ... i have a
>
> if ($update) {
> $result=foo;
> }
>
> in that if statement i want to redirect them to another page after it
> has processed the result ..
> i tried having using
>
> if ($update) {
>
hope that helps
best regards
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
- Original Message -
From: "Peter Houchin" <[EMAIL PROTECTED]>
To: "PHP MAIL GROUP" <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 9:58 AM
Subject: [PHP] redirect
can some one offer a suggestion please ... i have a
if ($update) {
$result=foo;
}
in that if statement i want to redirect them to another page after it has processed
the result ..
i tried having using
if ($update) {
$result=foo;
echo "";
}
but to no avail ..
any suggestio
HI,
why don't you implement some client side script in your page
for example:
echo ("function
Relod1(){window.location='your.php?url=default.php';}")
Joe Njeru,
Nairobi Kenya
""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
> i'm working
Hi!
i'm working on Windows NT workstation with PWS§
Therefore header does not work ! but i want to redirect to another page!
any server isde idea ?
Thanks
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail
-
From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2001 16:46
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Php Mailing List
Subject: RE: [PHP] redirect if sql = nothing
Actually this won't work since the actual query never runs
try:
$sql = "select * from tab
vis [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 20, 2001 11:33 AM
> > To: Php Mailing List
> > Subject: [PHP] redirect if sql = nothing
> >
> >
> > If my SQL returns no results then i want to redirect to a page saying no
> > result
In a message dated 20/02/2001 16:42:51 GMT Standard Time,
[EMAIL PROTECTED] writes:
<< $sql = "select * from table where bla bla bla";
if(!isset($sql)) {
do this;
} else {
do this;
}
I think ?
-Brian >>
This way might be a little easier
$sql = "select * from table where
; To: Php Mailing List
> Subject: [PHP] redirect if sql = nothing
>
>
> If my SQL returns no results then i want to redirect to a page saying no
> results etc but if results are found then I want it to continue
> on down the
> script how would i do this.
>
> M
by checking the return value of mysql_num_rows()
At 04:32 PM 2/20/01 +, Matt Davis wrote:
>If my SQL returns no results then i want to redirect to a page saying no
>results etc but if results are found then I want it to continue on down the
>script how would i do this.
>
>Matt.
>
>
>--
>PHP G
If my SQL returns no results then i want to redirect to a page saying no
results etc but if results are found then I want it to continue on down the
script how would i do this.
Matt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
Rosen,
You have to make sure that nothing is output before the header function.
Make sure that you neither employ an echo or print before, and have
nothing outside of th ephp code (the part enwrapped in ), not even whitespace.
You critical spot seems to be line 2 in go.php
Cheers,
Ben
Rosen wro
Hi,
I have php script and I want to redirect user to different pages.
I tryed with
header("Location: main.php");
but i receive error:
Warning: Cannot add header information - headers already sent by (output
started at F:\Inetpub\wwwroot\pernik\go.php:2) in
F:\Inetpub\wwwroot\pernik\go.php on lin
ary 24, 2001 1:03 PM
To: PHP Mailing List
Subject: [PHP] Redirect
What is wrong with this redirect:
http://www.dogpile.com";
header ("Location: " . $rdrct);
exit;
?>
Thanks! Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
What is wrong with this redirect:
http://www.dogpile.com";
header ("Location: " . $rdrct);
exit;
?>
Thanks! Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
301 - 354 of 354 matches
Mail list logo