Redirecting to another page, after doing something

This is a discussion on Redirecting to another page, after doing something within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi After I have done some work on one of my php pages, I want to go to another page, ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-13-2003
reynoldscraigr@hotmail.com
 
Posts: n/a
Default Redirecting to another page, after doing something

Hi

After I have done some work on one of my php pages, I want to go to
another page, and have that display, but I can't seem to work out how
to do it.

I have looked into the Header() function, but that doesn't seem to
work in my case, possibly because I am doing stuff before going to
another page.

Is there a way to do what I want, or will I need to use javascript to
achieve the changing of pages (which is easy enough to do) ?
Reply With Quote
  #2 (permalink)  
Old 07-13-2003
johannes m.r.
 
Posts: n/a
Default Re: Redirecting to another page, after doing something

Either use javascript or use a HTML meta refresh header or be sure not
to output anything before the header("Location: blablabla") line.
(i.e. be sure the opening PHP tag is the first thing in the file!)
HTH!

Reply With Quote
  #3 (permalink)  
Old 07-13-2003
reynoldscraigr@hotmail.com
 
Posts: n/a
Default Re: Redirecting to another page, after doing something

On Sun, 13 Jul 2003 13:23:51 +0200, johannes m.r. <psychosos@gmx.at>
wrote:

>Either use javascript or use a HTML meta refresh header or be sure not
>to output anything before the header("Location: blablabla") line.
>(i.e. be sure the opening PHP tag is the first thing in the file!)
>HTH!



I already tried the bit about having the PHP code at the start of the
file, but still didn't get it to work for me. Oh well, javascript it
is then.

thanks
Reply With Quote
  #4 (permalink)  
Old 07-13-2003
^MisterJingo^
 
Posts: n/a
Default Re: Redirecting to another page, after doing something

<reynoldscraigr@hotmail.com> wrote in message
news:sgn2hv8b665q1j81ovktcjeo9f2mngh36e@4ax.com
> On Sun, 13 Jul 2003 13:23:51 +0200, johannes m.r. <psychosos@gmx.at>
> wrote:
>
>> Either use javascript or use a HTML meta refresh header or be sure
>> not to output anything before the header("Location: blablabla") line.
>> (i.e. be sure the opening PHP tag is the first thing in the file!)
>> HTH!

>
>
> I already tried the bit about having the PHP code at the start of the
> file, but still didn't get it to work for me. Oh well, javascript it
> is then.
>
> thanks


have you tried output buffering? ie ob_start(); at the top of the file
before anything else?


Reply With Quote
  #5 (permalink)  
Old 07-14-2003
reynoldscraigr@hotmail.com
 
Posts: n/a
Default Re: Redirecting to another page, after doing something

On Sun, 13 Jul 2003 15:48:35 +0100, "^MisterJingo^"
<misterjingo@keysurf.net> wrote:

><reynoldscraigr@hotmail.com> wrote in message
>news:sgn2hv8b665q1j81ovktcjeo9f2mngh36e@4ax.com
>> On Sun, 13 Jul 2003 13:23:51 +0200, johannes m.r. <psychosos@gmx.at>
>> wrote:
>>
>>> Either use javascript or use a HTML meta refresh header or be sure
>>> not to output anything before the header("Location: blablabla") line.
>>> (i.e. be sure the opening PHP tag is the first thing in the file!)
>>> HTH!

>>
>>
>> I already tried the bit about having the PHP code at the start of the
>> file, but still didn't get it to work for me. Oh well, javascript it
>> is then.
>>
>> thanks

>
>have you tried output buffering? ie ob_start(); at the top of the file
>before anything else?
>


yes, I did have a go at that, but it didn't seem to help in my case.
It's not really an issue any more, I have it working with javascript.
Reply With Quote
  #6 (permalink)  
Old 07-15-2003
reynoldscraigr@hotmail.com
 
Posts: n/a
Default Re: Redirecting to another page, after doing something

On Mon, 14 Jul 2003 10:55:03 GMT, "Ian.H [dS]"
<ian@WINDOZEdigiserv.net> wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Whilst lounging around on Mon, 14 Jul 2003 17:54:28 +0800,
>reynoldscraigr@hotmail.com amazingly managed to produce the following
>with their Etch-A-Sketch:
>
>> It's not really an issue any more, I have it working with
>> javascript.

>
>
>FWIW.. whatever you have working wouldn't work for me.. as Javascript
>is disabled ;)
>


not an issue in my case, as it is just something for my own
consumption

>
>
>Regards,
>
> Ian
>
>-----BEGIN PGP SIGNATURE-----
>Version: PGP 8.0
>
>iQA/AwUBPxKMBWfqtj251CDhEQLMLgCcC4lJD1/ewsKTdtWzqaEH83F+oF0AnRFt
>1ZrhWV7E2w7OXj6o7Nc8vYtx
>=isT/
>-----END PGP SIGNATURE-----


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0