PHP jump to other page

Serg B. sergicles at gmail.com
Thu Oct 5 05:24:34 UTC 2006


Or buffer the output...


On 05/10/06, John Mark Walker <johnmark at johnmark.org> wrote:
> 1. the "<HTML>" line at the top of your .php file will ruin any
> chances of making header() work
> 2. there are other ways to do this. Instead of using header() why not
> use include( "/path/to/file" ) instead?
>
> -JM
>
>
> On Oct 4, 2006, at 9:22 PM, Groundhog wrote:
>
> >> Where was it in this you wanted a redirect?
> >
> > after there are no error message, then jump to another page.
> >
> >       if($error_msg==''){
> >               if($photo_paper == "on"){
> >                         ---->> Jump to index2.php
> >               } else {
> >                       ---->> Jump to index3.php
> >               }
> >       } else {
> >               echo "<font color=red>$error_msg</font>";
> >       }
> >
> >> Oh and if the user enters an image that isn't a jpg is that meant to
> >> be an error?
> >
> > YES
> >
> >> btw Groundhog do you use IRC?
> >
> > NO, why?
> >
> > --
> > Come and Visit My Blog
> > http://ubuntu-ku.blogspot.com
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list