[PHP] Redirect with referer info

2005-07-30 Thread Dotan Cohen
Hi list, I need to redirerect a page, and send the referer information along with the redirect. I have tried: header("Location: $url"); and print""; Both of them redirect as expected, but the browser (Firefox and Opera) do not send referer information along with the request. As this is for link af

Re: [PHP] Redirect after download

2004-12-01 Thread Richard Lynch
Justin England wrote: > I am writing a file download system and I need to be able to do a > redirect after the download is finished. The Redirect is sent as a header, before your download content. The browser is free to act on that Redirect header and IGNORE the file download content as soon as i

Re: [PHP] Redirect after download

2004-12-01 Thread Minuk Choi
ecember 01, 2004 4:07 AM Subject: [PHP] Redirect after download I am writing a file download system and I need to be able to do a redirect after the download is finished. Basically, the user will be presented with a simple HTML page that contains a link to download the file (href="/do

Re: [PHP] Redirect after download

2004-12-01 Thread Thomas Munz
> I am writing a file download system and I need to be able to do a > redirect after the download is finished. > > Basically, the user will be presented with a simple HTML page that > contains a link to download the file (href="/download.php?fileid=143"). > I have the code to send the file working

[PHP] Redirect after download

2004-12-01 Thread Justin England
I am writing a file download system and I need to be able to do a redirect after the download is finished. Basically, the user will be presented with a simple HTML page that contains a link to download the file (href="/download.php?fileid=143"). I have the code to send the file working just f

[PHP] Redirect or Set Current Directory?

2004-11-21 Thread Paul Furman
I've got a script that lists all the folders on my web space. If the folder containes a non-php old web page with an index.htm in it I try to include that index.htm but the links inside there do not realize they are another folder deep. I've been away from this php stuff for a while so am proba

RE: [PHP] Redirect then error message to user

2004-10-22 Thread Graham Cossey
27;]=='2') { ... etc... Graham > -Original Message----- > From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: 22 October 2004 21:55 > To: Brent Baisley > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Redirect then error message to user > > > Brent - Th

Re: [PHP] Redirect then error message to user

2004-10-22 Thread Stuart Felenstein
Brent - Thank you I will try that method. Can you elaborate more on below. I take it to mean you have one page/script that your pages are going to do all the checks. This form is 5 pages long. So I chose session variables just to keep it neat and "maybe", more secure. Stuart --- Brent Baisl

Re: [PHP] Redirect then error message to user

2004-10-22 Thread Brent Baisley
You can pass the error in the redirect URL: header("Location: http://www.xx.com/page1.php?errmsg=You missed some stuff") On your main page you just check if there is an errmsg to be displayed: if(isset($_GET['errmsg'])) { echo $_GET['errmsg']; } That a simplified version obviously. Bu

Re: [PHP] Redirect then error message to user

2004-10-22 Thread Stuart Felenstein
The only problem I'm having here is that if a user goes backwards, the error from the session variable will show up. I put an unset $.. underneath the echo but that seems to have no effect. Stuart --- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > See below: > --- Jason Wong <[EMAIL PROTECT

Re: [PHP] Redirect then error message to user

2004-10-22 Thread Stuart Felenstein
See below: --- Jason Wong <[EMAIL PROTECTED]> wrote: > What are you trying to do here? > Is 'Page1' == TestMulti4a.php? > Are you trying to display $_SESSION['er'] as set in > Page2? > If so why are you assigning $_POST['er'] to > $_SESSION['er']? All you need to > do is echo $_SESSION['er']. >

RE: [PHP] Redirect then error message to user

2004-10-22 Thread Stuart Felenstein
Sorry, all fixed now! Thank you for the help! Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect then error message to user

2004-10-22 Thread Jason Wong
On Saturday 23 October 2004 02:38, Stuart Felenstein wrote: > This isn't working: > Page2 (after page1 has been posted): > >else >{ > $_SESSION['er'] = 'Please make sure to fill in all 3 > corresponding values .'; If you want keep changes to any session variables (so that they're

RE: [PHP] Redirect then error message to user

2004-10-22 Thread Stuart Felenstein
This isn't working: Page2 (after page1 has been posted): else { $_SESSION['er'] = 'Please make sure to fill in all 3 corresponding values .'; header("Location: http://www.x.com/TestMulti4a.php"; ); exit; } } Page1: Opening after session_start $_SESSION['er']

Re: [PHP] Redirect then error message to user

2004-10-22 Thread Jason Wong
On Saturday 23 October 2004 01:25, Stuart Felenstein wrote: > I'm not quite sure how to get an error message to > print out after a redirect. I know it's possible. It's not possible. Think about it. How *can* you print something out when you've already told the browser to go somewhere else? BTW

RE: [PHP] Redirect then error message to user

2004-10-22 Thread Stuart Felenstein
Now why didn't I think of that ! Thank you Jay! Stuart --- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] >{ > header("Location: > http://www.xx.com/page1.php"; > ); > print "You have errors"; > exit; >} > > } > [/snip] > > You either need to carry info about the

RE: [PHP] Redirect then error message to user

2004-10-22 Thread Jay Blanchard
[snip] { header("Location: http://www.xx.com/page1.php"; ); print "You have errors"; exit; } } [/snip] You either need to carry info about the error in a session variable or url string or something...above your redirect happens before any error can be sent to the browser

[PHP] Redirect then error message to user

2004-10-22 Thread Stuart Felenstein
I'm not quite sure how to get an error message to print out after a redirect. I know it's possible. Now page1 moves to page2, check below is on page2 If I leave it on page2 (without redirect), it prints error to user fine. Once it redirects no print. I also tried leaving it on form1, at the top

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Chris Shiflett
--- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > You have done a better job describing that situation than i did. Thank > you. No problem. :-) I found that URL I mentioned (with the browser tests). The author claims that it's all being rewritten, but most of them are listed here: http://www.

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Raditha Dissanayake
Hi Chris. You have done a better job describing that situation than i did. Thank you. best regards raditha Chris Shiflett wrote: --- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: It's not often that i disagree with the other chris but one occaision where meta refresh turns out to be the only

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Lowell Allen
> --- Lowell Allen <[EMAIL PROTECTED]> wrote: [snip] >> Am I overlooking a better solution? > > I'm not sure. To be clear, you're saying that the following two things do > not behave the same for you: > > header('Refresh: ...'); > > > > Is this right? I suspect that you might be comparing th

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- Lowell Allen <[EMAIL PROTECTED]> wrote: > You must do authorization, then force a file download, and you want to > also display a link to the file with the typical "click the link below > if the download does not start automatically". I couldn't figure out how > to display a page (after authori

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > What happens is that the gateways include your page instead of posting > to your page. > > For example if you visit a site that uses worldpay as a payment service > provider you will see their banner on the thank you page after > payment is ma

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > It's not often that i disagree with the other chris but one occaision > where meta refresh turns out to be the only solution is when working > with some payment gateways where instead of doing a simple old post to > your return page they inclu

RE: [PHP] PHP REDIRECT

2004-02-16 Thread Chris
Ahh, ok, I understand. Thanks Chris > -Original Message- > From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 10:51 AM > To: Chris; [EMAIL PROTECTED] > Subject: Re: [PHP] PHP REDIRECT > > > Nopes, > > What happens is that

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Raditha Dissanayake
t' use the , set the header with PHP instead. As far as I can see that should always be possible. -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 10:07 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP REDIRECT Hi Chris and Chris and e

RE: [PHP] PHP REDIRECT

2004-02-16 Thread Chris
ginal Message- > From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 10:07 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP REDIRECT > > > Hi Chris and Chris and et al. > > It's not often that i disagree with the other chris

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Raditha Dissanayake
Hi Chris and Chris and et al. It's not often that i disagree with the other chris but one occaision where meta refresh turns out to be the only solution is when working with some payment gateways where instead of doing a simple old post to your return page they include it inside their own thank

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Stuart
Lowell Allen wrote: You must do authorization, then force a file download, and you want to also display a link to the file with the typical "click the link below if the download does not start automatically". I couldn't figure out how to display a page (after authorization), then use the PHP header

RE: [PHP] PHP REDIRECT

2004-02-16 Thread Chris
O to meta http-equiv tags! :) Chris (the other one) > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 8:51 AM > To: Chris; ajay; [EMAIL PROTECTED] > Subject: RE: [PHP] PHP REDIRECT > > > --- Chris <[EMAIL PRO

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Lowell Allen
> --- Chris <[EMAIL PROTECTED]> wrote: >> You can't view the page and have PHP redirect it. You would need to >> use a refresh tag or JavaScript. > > I assume by meta refresh tag, you mean this: > > http://example.org/";> > > What mos

RE: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- Chris <[EMAIL PROTECTED]> wrote: > You can't view the page and have PHP redirect it. You would need to > use a refresh tag or JavaScript. I assume by meta refresh tag, you mean this: http://example.org/";> What most people seem to not realize, is that the http-equi

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- ajay <[EMAIL PROTECTED]> wrote: > i'd like to redirect a person to another page but after a certain time > interval has elapsed. this is because i have a generic error displaying > page and i would like the person to go to this page, stay there for like > 10 seconds and then be redirected to th

Re: [PHP] PHP REDIRECT

2004-02-15 Thread John Nichel
ajay wrote: hi! i'd like to redirect a person to another page but after a certain time interval has elapsed. this is because i have a generic error displaying page and i would like the person to go to this page, stay there for like 10 seconds and then be redirected to the index page. i was using h

RE: [PHP] PHP REDIRECT

2004-02-15 Thread Chris
You can't view the page and have PHP redirect it. You would need to use a refresh tag or JavaScript. Chris > -Original Message- > From: ajay [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 15, 2004 8:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP REDIRECT &g

Re: [PHP] PHP REDIRECT

2004-02-15 Thread Binay
use sleep(no of seconds).. Cheers Binay - Original Message - From: "ajay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 16, 2004 9:54 AM Subject: [PHP] PHP REDIRECT > hi! > > i'd like to redirect a person to another page but

[PHP] PHP REDIRECT

2004-02-15 Thread ajay
hi! i'd like to redirect a person to another page but after a certain time interval has elapsed. this is because i have a generic error displaying page and i would like the person to go to this page, stay there for like 10 seconds and then be redirected to the index page. i was using header("url"

Re: [PHP] redirect

2003-10-30 Thread alain dhaene
it works, thx "Chris W. Parker" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] Pablo Zorzoli on Wednesday, October 29, 2003 11:20 AM said: > You cannot do any echo ""; before header("location:.."); maybe that's > the problem. The solution would be to

Re: [PHP] redirect

2003-10-29 Thread Marek Kilimajer
alain dhaene wrote: But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) The warning states it clearly, output started on line 1 in registratieFuncti

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
alain dhaene on Wednesday, October 29, 2003 11:29 AM said: > I have check my code. > I haven't use a echo in my code. > It's very strange. I will search more on the manule. PHP has so far been very good to me with reporting this error. I would trust the error messag

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene <[EMAIL PROTECTED]> wrote: > I have check my code. > I haven't use a echo in my code. > It's very strange. I will search more on the manule. I don't think the manual will help you here. You *do* have output in your script prior to the call to header(). Trust me. :-) One way to fi

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene <[EMAIL PROTECTED]> wrote: > Is there in php something as a redirect to another page like in asp? Yes, and as with ASP, there are several methods. Make an example script that has only this: http://www.google.com/'); ?> As for your error about headers already being sent, this is

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
I have check my code. I haven't use a echo in my code. It's very strange. I will search more on the manule. thx "Pablo Zorzoli" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Wed, 2003-10-29 at 16:17, alain dhaene wrote: > > But I get the following warning: > > > > Warning: Ca

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
Pablo Zorzoli on Wednesday, October 29, 2003 11:20 AM said: > You cannot do any echo ""; before header("location:.."); maybe that's > the problem. The solution would be to turn on output buffering. http://www.fullurl.com/notjust/a/page.html";); exit; ?> hth, C

Re: [PHP] redirect

2003-10-29 Thread Pablo Zorzoli
On Wed, 2003-10-29 at 16:17, alain dhaene wrote: > But I get the following warning: > > Warning: Cannot modify header information - headers already sent by (output > started at > /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: > 1) in > /home/schoolre/public_html/Hitek

Re: [PHP] redirect

2003-10-29 Thread alain dhaene
But I get the following warning: Warning: Cannot modify header information - headers already sent by (output started at /home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php: 1) in /home/schoolre/public_html/Hitek/Online/Registratie/registratieData.php on line 30 In registra

RE: [PHP] redirect

2003-10-29 Thread Gregory Kornblum
>header("Location: registratie.html"); That is exactly how you do the PHP version of a response.redirect(). Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] redirect

2003-10-29 Thread alain dhaene
Hi, Is there in php something as a redirect to another page like in asp? e.g if(choice==1) response.redirect("page.php"); response.redirect("page2.php"); I have search in the manuel, but the only thing I find is something like header("Location: registratie.html"); But I guess it's w

Re: [PHP] Redirect

2003-10-25 Thread Jon Kriek
header() refresh/redirect with delay. --- http://www.example.com'); exit(); } ob_end_flush(); ?> --- header() refresh/re-direct without delay --- http://www.example.com'); exit(); } ob_end_flu

Re: [PHP] Redirect

2003-10-25 Thread James Hicks
On Saturday 25 October 2003 10:54 am, Joao Andrade wrote: > Hi there people, > > I'm looking for a function that will redirect a browser to another page > after a PHP scrip has run. I tried serching for it in the doc but found > nothing. It shall be similar to Tcl's "ns_returnredirect". >

Re: [PHP] Redirect

2003-10-25 Thread John Nichel
http://us2.php.net/manual/en/function.header.php Joao Andrade wrote: Hi there people, I'm looking for a function that will redirect a browser to another page after a PHP scrip has run. I tried serching for it in the doc but found nothing. It shall be similar to Tcl's "ns_returnredirect"

[PHP] Redirect

2003-10-25 Thread Joao Andrade
Hi there people, I'm looking for a function that will redirect a browser to another page after a PHP scrip has run. I tried serching for it in the doc but found nothing. It shall be similar to Tcl's "ns_returnredirect". Thanx. Joao Penna Andrade Undergraduate, Mechanical Engineering

[PHP] RE : [PHP] Redirect URL

2003-09-23 Thread Youri B .
gt; > -Message d'origine- > De═: Yury B. [mailto:[EMAIL PROTECTED] > Envoyй═: dimanche 21 septembre 2003 22:00 > А═: [EMAIL PROTECTED] > Objet═: [PHP] Redirect URL > > Hi > > I have form in file register.php. The action of this form is the same >

Re: [PHP] Redirect URL

2003-09-22 Thread Marek Kilimajer
Search the archives or google. Yury B. wrote: Hi I have form in file register.php. The action of this form is the same - register.php the form validation script is included in this file like include("mail.php") In mail.php there is two sections - one is working if user didn't complete form p

[PHP] Redirect URL

2003-09-22 Thread Yury B .
Hi I have form in file register.php. The action of this form is the same - register.php the form validation script is included in this file like include("mail.php") In mail.php there is two sections - one is working if user didn't complete form properly another if everything okay. So, I need

RE: [PHP] Redirect to HTTPS

2003-08-01 Thread Luis Lebron
Here's another way to do it: https://$url_array[host]$url_array[path]";); } ?> Luis -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 3:25 AM To: PHP General Subject: Re: [PHP] Redirect to HTTPS This is how I do it:

Re: [PHP] Redirect to HTTPS

2003-08-01 Thread Nicholas Robinson
It might also be worth making sure that your web server is configured to force https on this page if this is what you want. Otherwise a user could type the URL in without the HTTPS and still get the page. On Friday 01 Aug 2003 9:20 am, [EMAIL PROTECTED] wrote: > I have a stupid question. > > I

Re: [PHP] Redirect to HTTPS

2003-08-01 Thread Richard Baskett
e: Fri, 1 Aug 2003 10:20:58 +0200 > To: [EMAIL PROTECTED] > Subject: [PHP] Redirect to HTTPS > > I have a stupid question. > > I need if i be in a http make a redirect to https. > Http is a 80 port and ssl is a 443 port > > if ($HTTP_SERVER_VARS['SERVER_PORT']==80)

[PHP] Redirect to HTTPS

2003-08-01 Thread desa15
I have a stupid question. I need if i be in a http make a redirect to https. Http is a 80 port and ssl is a 443 port if ($HTTP_SERVER_VARS['SERVER_PORT']==80) { header("Location: https://mynet.com/pay.php";); exit; } Is the correct way to do this ??? Exist any function to make this ?

Re: [PHP] REDIRECT STATUS CGI

2003-07-23 Thread Freek van de Griendt
Can I just change this status to 0 en then start my Xitami? Or do I have to reinstall it after I have changed the status to 0? The first option didn't seem to work properly. Thanks in advance, Freek "Curt Zirzow" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > * Thus wrote Freek v

Re: [PHP] REDIRECT STATUS CGI

2003-07-22 Thread Curt Zirzow
* Thus wrote Freek van de Griendt ([EMAIL PROTECTED]): > Hi, > > I just started using PHP and installed it on my Windows machine, together > with Xitami (Web server). But now, when I try to write a simple PHP file I > get the following error: > > Security Alert! The PHP CGI cannot be accessed dir

Re: [PHP] REDIRECT STATUS CGI

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Freek van de Griendt" claimed that: |Hi, | |I just started using PHP and installed it on my Windows machine, together |with Xitami (Web server). But now, when I try to write a simple PHP file I |get the following error: | |Security Alert! The PHP CGI cannot be accessed directly.

[PHP] REDIRECT STATUS CGI

2003-07-22 Thread Freek van de Griendt
Hi, I just started using PHP and installed it on my Windows machine, together with Xitami (Web server). But now, when I try to write a simple PHP file I get the following error: Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabl

Re: [PHP] Redirect output of include() for mailing

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 18:57, lines prefixed by '>' were originally written by you. > Thanks. > Will the same method works for a dynamically generated image using > php? > Suppose that myscript.php output JPEG instead of HTML. > RDB Yes that will

Re: [PHP] Redirect output of include() for mailing

2003-07-22 Thread Reuben D. Budiardja
On Tuesday 22 July 2003 01:43 pm, David Nicholson wrote: > Hello, > > This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at > 18:37, lines prefixed by '>' were originally written by you. > > > But how can I instead capture the output of the include to > > variable > > > and mail > > it

Re: [PHP] Redirect output of include() for mailing

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 18:37, lines prefixed by '>' were originally written by you. > But how can I instead capture the output of the include to variable > and mail > it, something like > $msg = include('myscript.php?foo=bar") Use output bufferin

[PHP] Redirect output of include() for mailing

2003-07-22 Thread Reuben D. Budiardja
Hello, Suppose I have a php file that output certain HTML given certain parameters. So I can call it likt http://localhost/myscript.php?foo=bar I can include it from other page using include('myscript.php?foo=bar') But how can I instead capture the output of the include to variable and mail it

RE: [PHP] Redirect to a different frame...

2003-07-03 Thread Grant Rutherford
> > > -Dan Joseph > > > > > -Original Message- > > > From: Grant Rutherford [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, July 03, 2003 12:03 PM > > > To: Dan Joseph > > > Cc: PHP Mailing List > > > Subject: RE: [PHP] Re

RE: [PHP] Redirect to a different frame...

2003-07-03 Thread Adam Voigt
n. > > -Dan Joseph > > > -Original Message- > > From: Grant Rutherford [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 03, 2003 12:03 PM > > To: Dan Joseph > > Cc: PHP Mailing List > > Subject: RE: [PHP] Redirect to a different frame... > > > &

RE: [PHP] Redirect to a different frame...

2003-07-03 Thread Dan Joseph
[EMAIL PROTECTED] > Sent: Thursday, July 03, 2003 12:03 PM > To: Dan Joseph > Cc: PHP Mailing List > Subject: RE: [PHP] Redirect to a different frame... > > > Hi there, > > Thanks for your response. I understand that I can specify a target in > the form tag. However

RE: [PHP] Redirect to a different frame...

2003-07-03 Thread Grant Rutherford
Hi there, Thanks for your response. I understand that I can specify a target in the form tag. However, if I were to do that both buttons would have to go to the same frame. (I think?) If I could specify the target for each submit button, that would work perfectly. Also, if I could have the sa

RE: [PHP] Redirect to a different frame...

2003-07-03 Thread Dan Joseph
Hi, > I was wondering if there is a way to use the header function in php to > redirect the browser's output to a different frame. > > Specifically, I have a form on frame A which has two submit buttons. I > would like one to submit the data in the form to a page which will load > in frame A, and

[PHP] Redirect to a different frame...

2003-07-03 Thread Grant Rutherford
Hello there, I was wondering if there is a way to use the header function in php to redirect the browser's output to a different frame. Specifically, I have a form on frame A which has two submit buttons. I would like one to submit the data in the form to a page which will load in frame A, and t

[PHP] REDIRECT

2003-06-06 Thread Dale
Does anybody know of a way to redirect to another page once you have already outputted html to the screen. In other words, I want to output some text to the screen for 10 secs and then re-direct to another page. Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] PHP redirect

2003-05-29 Thread Leif K-Brooks
Actually, the standards require an absolute URL, e.g. header("Location: http://foo.com/bar/baz/something.php";); David Grant wrote: It might also be an idea to give the filename as a path relative to the root directory, e.g. header("Location: /foo/bar/index.php"); -- The above message is enc

Re: [PHP] PHP redirect

2003-05-29 Thread David Grant
Awlad Hussain wrote: Try this header("LOCATION: page2go.php"); I'm not normally so pedantic, however, the HTTP specification defines the above header as "Location", not "LOCATION". It might also be an idea to give the filename as a path relative to the root directory, e.g. header("Location: /fo

RE: [PHP] PHP redirect

2003-05-29 Thread Ralph
Use the header function: http://www.php.net/manual/en/function.header.php -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:46 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php

Re: [PHP] PHP redirect

2003-05-29 Thread Awlad Hussain
Try this header("LOCATION: page2go.php"); - Original Message - From: "Angelo Zanetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 9:46 AM Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php

[PHP] PHP redirect

2003-05-29 Thread Angelo Zanetti
Hi guys what is the function in PHP for directing a php page?? thanx in advance Angelo

Re: [PHP] Redirect

2003-04-05 Thread Ron Rudman
I believe you can also prevent the header error by using ob_start(); "Jean-Louis Letortorec" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > To work around that "headers already sent" problem, I use: > > if ($condition == true) { echo > "location.href=('http://...');"; } > > That wor

RE: [PHP] Redirect

2003-04-03 Thread LeTortorec, Jean-Louis
To work around that "headers already sent" problem, I use: if ($condition == true) { echo "location.href=('http://...');"; } That works great all the time (unless the javascript has been disabled at the browser side, but usually it's enabled). Jean-Louis At 15:55 3-4-2003, you wrote: >Hi, >

RE: [PHP] Redirect

2003-04-03 Thread Suretha Theron
if($condition == true){ Header ("Location: newpage.php"); exit; } -Original Message- From: Lowell Allen [mailto:[EMAIL PROTECTED] Sent: 03 April 2003 04:09 PM To: PHP Subject: Re: [PHP] Redirect > From: "shaun" <[EMAIL PROTECTED]> > >

Re: [PHP] Redirect

2003-04-03 Thread Chris Hayes
At 15:55 3-4-2003, you wrote: Hi, How would one redirect a user to a different page if a certain condition was met? i.e. if($condition == true){ goTo newPage.php } if ($condition == true) { Header("Location: "http://www.sense.nl/index.php?module=ContentExpress&func=displ

Re: [PHP] Redirect

2003-04-03 Thread Lowell Allen
> From: "shaun" <[EMAIL PROTECTED]> > > How would one redirect a user to a different page if a certain condition was > met? > > i.e. > > if($condition == true){ > goTo newPage.php > } Redirects are done using the header() function. See the documentation at

[PHP] Redirect

2003-04-03 Thread shaun
Hi, How would one redirect a user to a different page if a certain condition was met? i.e. if($condition == true){ goTo newPage.php } Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] redirect using header

2003-03-27 Thread Chris Shiflett
--- David Banning <[EMAIL PROTECTED]> wrote: > I have been trying to do a redirect with header; ... > I keep getting the error; > > Warning: Cannot modify header information - headers already sent by > (output started at /usr/hosting/optex/goterm/temp.html:8) in > /usr/hosting/optex/goterm/temp.ht

RE: [PHP] redirect using header

2003-03-27 Thread Jeremy Russell
Use ---> header("Location:http://newwebpage.com";); -Original Message- From: David Banning [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:15 PM To: [EMAIL PROTECTED] Subject: [PHP] redirect using header I have been trying to do a redirect with header;

RE: [PHP] redirect using header

2003-03-27 Thread Matt Schroebel
> -Original Message- > From: David Banning [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2003 2:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] redirect using header > > > I have been trying to do a redirect with header; > > > &g

RE: [PHP] redirect using header

2003-03-27 Thread Jennifer Goodie
PROTECTED] Sent: Thursday, March 27, 2003 11:15 AM To: [EMAIL PROTECTED] Subject: [PHP] redirect using header I have been trying to do a redirect with header; Optex Staging and Services Inc. http://newwebpage.com'); ?> Stand By For Terminal... I keep getting the error; Warning

[PHP] redirect using header

2003-03-27 Thread David Banning
I have been trying to do a redirect with header; Optex Staging and Services Inc. http://newwebpage.com'); ?> Stand By For Terminal... I keep getting the error; Warning: Cannot modify header information - headers already sent by (output started at /usr/hosting/optex/goterm/temp.html:

RE: [PHP] Redirect to a new page?

2003-03-14 Thread Michael Roger C. Bianan
before you ever print in your code. I know you could do it :) Thanks, Miches:) -Original Message- From: Beauford.2002 [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 10:44 AM To: PHP General Subject: [PHP] Redirect to a new page? Hi, I have searched around for hours on this and

Re: [PHP] Redirect to a new page?

2003-03-13 Thread Beauford.2002
Figured it out echo ""; echo "window.location.href = 'viewpostats.php'"; echo ""; - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTE

Re: [PHP] Redirect to a new page?

2003-03-13 Thread Leif K-Brooks
if(something){ header("Location: {$_SERVER['HTTP_HOST']}/thispage.php"); }else{ header("Location: {$_SERVER['HTTP_HOST']}/thatpage.php"); } Beauford.2002 wrote: Hi, I have searched around for hours on this and nothing seems to work. I want simply to do this if yes - goto thispage.php if no

Re: [PHP] Redirect to a new page?

2003-03-13 Thread David E.S.V.
btw in your case would be just if/else cheers David. On Thu, 13 Mar 2003, David E.S.V. wrote: > > you can use javascript instead.. > > for example in a jump menu: > > > function seleccionPerfil(form) { > >if (form.perfil.selectedIndex == 0) > >{ > > window.location.hr

Re: [PHP] Redirect to a new page?

2003-03-13 Thread David E.S.V.
you can use javascript instead.. for example in a jump menu: function seleccionPerfil(form) { if (form.perfil.selectedIndex == 0) { window.location.href="yourpage1.php"; } if (form.perfil.selectedIndex == 1) { window.location.href="yourpage2.php"; }

[PHP] Redirect to a new page?

2003-03-13 Thread Beauford.2002
Hi, I have searched around for hours on this and nothing seems to work. I want simply to do this if yes - goto thispage.php if no - goto thatpage.php Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Redirect...

2003-03-10 Thread Doug Coning
Hi all, I'm running the below code to download a text file. After the save as window comes up, I can correctly save the document. However, the browser goes to a "Action Cancelled" error page. Here's my code: Am I suppose to redirect the page after it saves the file, and if so how would I do

RE: [PHP] Redirect without header or javascipt

2003-02-19 Thread Henry
with using header? you mean like this--> Header("location: http://url";); -Original Message- From: Daniel Guerrier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 7:00 AM To: php user group Subject: [PHP] Redirect without header or javascipt Is

Re: [PHP] Redirect without header or javascipt

2003-02-18 Thread Justin French
without header() and without javascript? your only option would be a meta refresh, which i can't imagine is going to help :) Justin on 19/02/03 9:59 AM, Daniel Guerrier ([EMAIL PROTECTED]) wrote: > Is there any to redirect in php with using header() > and without the use of javascript? > > _

RE: [PHP] Redirect without header or javascipt

2003-02-18 Thread Johnson, Kirk
> Is there any to redirect in php with using header() > and without the use of javascript? You can use an html meta tag with http-equiv="refresh". Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   >