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 it
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
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
[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
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 error in a
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
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'] =
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
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
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'].
Yes
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 PROTECTED]
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. But
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
PROTECTED]
Sent: 22 October 2004 21:55
To: Brent Baisley
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Redirect then error message to user
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
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
--- 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:
--- 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 the
--- Chris [EMAIL PROTECTED] wrote:
You can't view the page and have PHP redirect it. You would need to
use a meta refresh tag or JavaScript.
I assume by meta refresh tag, you mean this:
meta http-equiv=refresh content=10;URL=http://example.org/;
What most people seem to not realize
--- Chris [EMAIL PROTECTED] wrote:
You can't view the page and have PHP redirect it. You would need to
use a meta refresh tag or JavaScript.
I assume by meta refresh tag, you mean this:
meta http-equiv=refresh content=10;URL=http://example.org/;
What most people seem to not realize
! :)
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 PROTECTED] wrote:
You can't view the page and have PHP redirect
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
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
.
-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 et al.
It's not often that i disagree with the other chris but one occaision
where meta refresh
http-equiv=..., 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
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 the gateways include your page instead
--- 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 include it
--- 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 made. In
--- 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
--- 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: ...');
meta http-equiv=Refresh ...
Is this right? I suspect that you might
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)
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 after a certain time
interval
has elapsed
You can't view the page and have PHP redirect it. You would need to use a
meta 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
hi!
i'd like
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
it works,
thx
Chris W. Parker [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Pablo Zorzoli mailto:[EMAIL PROTECTED]
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
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 wrong
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
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
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
Pablo Zorzoli mailto:[EMAIL PROTECTED]
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.
?php
ob_start();
// do your stuff
header(Location:
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: Cannot
--- 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:
? header('Location: http://www.google.com/'); ?
As for your error about headers already
--- 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 find
alain dhaene mailto:[EMAIL PROTECTED]
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 message
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
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
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.
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.
header() refresh/redirect with delay.
---
?php
ob_start();
if(!headers_sent()) {
header('Refresh: 1; Url=http://www.example.com');
exit();
}
ob_end_flush();
?
---
header() refresh/re-direct without delay
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
- register.php the form validation script is included in this file
like include(mail.php) In mail.php there is two
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
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
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
]
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)
{
header(Location: https://mynet.com/pay.php;);
exit;
}
Is the correct way to do
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
, August 01, 2003 3:25 AM
To: PHP General
Subject: Re: [PHP] Redirect to HTTPS
This is how I do it:
if ($_SERVER['HTTPS']!='on') {
header(Location: https://mynet.com/pay.php;);
exit;
}
It is my ambition to say in ten sentences; what others say in a whole
book. - Friedrich Nietzsche
From
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 van
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.
* 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 directly.
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
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 buffering...
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, something
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 work
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
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
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 the
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
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, if I were to do that both buttons would have to
go
]
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, if I were to do that both buttons would have to
go
-
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...
Hi there,
Thanks for your response. I understand that I can specify a target in
the form tag
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,
Hi guys what is the function in PHP for directing a php page??
thanx in advance
Angelo
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 page??
thanx in advance
Angelo
--
PHP
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
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:
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
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
scriptlocation.href=('http://...');/script; }
That
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
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
http://www.php.net/manual/en/function.header.php.
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:
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]
How would one redirect a user to a different
To work around that headers already sent problem, I use:
if ($condition == true) { echo
scriptlocation.href=('http://...');/script; }
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
I have been trying to do a redirect with header;
HTML
HEAD
TITLEOptex Staging and Services Inc. /TITLE
/HEAD
BODY
?php
header('http://newwebpage.com');
?
H3
FONT COLOR=#FFStand By For Terminal.../FONT/H3
/BODY
/HTML
I keep getting the error;
Warning: Cannot modify header information -
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;
HTML
HEAD
TITLEOptex Staging and Services Inc. /TITLE
/HEAD
BODY
?php
header('http://newwebpage.com');
?
H3
FONT COLOR=#FFStand
-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;
HTML
HEAD
TITLEOptex Staging and Services Inc. /TITLE
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;
HTML
HEAD
TITLEOptex
--- 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.html on
. 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 nothing seems to work. I want
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
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;
}
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)
{
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 -
Figured it out
echo Script Lang=javascript;
echo window.location.href = 'viewpostats.php';
echo /script;
- Original Message -
From: Leif K-Brooks [EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 2:20 PM
Subject: Re: [PHP
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:
?
header(Content-type: application/text);
header('Content-Disposition: attachment;
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 there any to redirect
Is there any to redirect in php with using header()
and without the use of javascript?
__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
no
tyler
- Original Message -
From: Daniel Guerrier [EMAIL PROTECTED]
To: php user group [EMAIL PROTECTED]
Sent: Tuesday, February 18, 2003 4:59 PM
Subject: [PHP] Redirect without header or javascipt
Is there any to redirect in php with using header()
and without the use
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
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?
What is the syntax to have php redirect to another web site?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What is the syntax to have php redirect to another web site?
?php
header(Location: http://domain.com/;);
?
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
101 - 200 of 339 matches
Mail list logo