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, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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) ? |
|
|||
|
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! |
|
|||
|
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 |
|
|||
|
<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? |
|
|||
|
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. |
|
|||
|
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----- |