[PHP-DB] Re:[PHP-DB] opening webpage From: Adv. Systems Design (asd_2000 <email protected>)
Date: 11/20/00

I dont know if this is relevant, but I am calling it
like this:
.
case "insert" :
   insert_lesson($HTTP_POST_VARS);
   header("location: http://someplace/lessons.php");
   break;
.

Meaning I have to insert the records first then go out
to the display page...

Is this screwing up the header call?

Luis

--- Roberto Sartor <roberto <email protected>> wrote:
> Do a better check to your script: it surely prints
> somewhere some new line
> or white space or another character you don't see...
> When you a print any char, headers is always sent
> (implicitly).
>
> Ciao
> Roberto
>
>
> > -----Messaggio originale-----
> > Da: Adv. Systems Design
> [mailto:asd_2000 <email protected>]
> > Inviato: luned́ 20 novembre 2000 17.58
> > A: php-db <email protected>
> > Oggetto: RE: [PHP-DB] opening webpage
> >
> >
> > Actually, I digress... the header() did not work
> > because:
> >
> > Warning: Cannot add header information - headers
> > already sent by (output started at
> > templates/header.php:3) in
> > /home/httpd/html/lesson/admin/add_lessons.php on
> line
> > 41
> >
> > Line 41 is the header() call...
> >
> > Anyone have any other ideas as to how to jump to
> > another page programatically from within a
> > switch...case setup? All I am trying to do is
> submit a
> > form (on add_lessons.php) and goto a listing on
> > lessons.php within the same dir)
> >
> > thanks
> >
> > --- "Adv. Systems Design" <asd_2000 <email protected>>
> wrote:
> > > Thanks, that did the trick...
> > >
> > > Luis
> > >
> > > --- o.cook <email protected> wrote:
> > > > header("Location:
> > > > http://host.domain.tld/directory/page.ext");
> > > >
> > > > see
> http://www.php.net/manual/function.header.php
> > > >
> > > > Ollie
> > > >
> > > > > -----Original Message-----
> > > > > From: Adv. Systems Design
> > > > [mailto:asd_2000 <email protected>]
> > > > > Sent: 19 November 2000 17:13
> > > > > To: PHP List
> > > > > Subject: [PHP-DB] opening webpage
> > > > >
> > > > >
> > > > > Hello all:
> > > > >
> > > > > I was wondering how one would open (go to)
> > > another
> > > > web
> > > > > page programatically, say as a result of an
> > > > if-else
> > > > > statement. i.e.
> > > > >
> > > > > if (x==true) {
> > > > > goto http://pagex
> > > > > }else{
> > > > > goto http://pagey
> > > > > }
> > > > > Thanx
> > > > >
> > > > > Luis
> > > > >
> > > > >
> > >
> __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Calendar - Get organized for the
> > > holidays!
> > > > > http://calendar.yahoo.com/
> > > > >
> > > > > --
> > > > > PHP Database Mailing List
> (http://www.php.net/)
> > > > > To unsubscribe, e-mail:
> > > > php-db-unsubscribe <email protected>
> > > > > For additional commands, e-mail:
> > > > php-db-help <email protected>
> > > > > To contact the list administrators, e-mail:
> > > > > php-list-admin <email protected>
> > > > >
> > > >
> > > > --
> > > > PHP Database Mailing List
> (http://www.php.net/)
> > > > To unsubscribe, e-mail:
> > > > php-db-unsubscribe <email protected>
> > > > For additional commands, e-mail:
> > > > php-db-help <email protected>
> > > > To contact the list administrators, e-mail:
> > > > php-list-admin <email protected>
> > > >
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Calendar - Get organized for the
> holidays!
> > > http://calendar.yahoo.com/
> > >
> > > --
> > > PHP Database Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail:
> > > php-db-unsubscribe <email protected>
> > > For additional commands, e-mail:
> > > php-db-help <email protected>
> > > To contact the list administrators, e-mail:
> > > php-list-admin <email protected>
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Calendar - Get organized for the holidays!
> > http://calendar.yahoo.com/
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> php-db-unsubscribe <email protected>
> > For additional commands, e-mail:
> php-db-help <email protected>
> > To contact the list administrators, e-mail:
> > php-list-admin <email protected>
> >

__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>