Re:opening webpage

From: Date: Tue, 21 Nov 2000 10:55:09 +0000
Subject: Re:opening webpage
Groups: php.db 
Request: Send a blank email to php-db+get-4601@lists.php.net to get a copy of this message
A procedure call may screw up your header, depends on what's inside. Did you check for CR LF, white lines? Ciao Roberto > -----Messaggio originale----- > Da: Adv. Systems Design [mailto:asd_2000@yahoo.com] > Inviato: lunedì 20 novembre 2000 21.53 > A: php-db@lists.php.net > Oggetto: [PHP-DB] Re:[PHP-DB] opening webpage > > > 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@mionetto.it> 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@yahoo.com] > > > Inviato: lunedì 20 novembre 2000 17.58 > > > A: php-db@lists.php.net > > > 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@yahoo.com> > > wrote: > > > > Thanks, that did the trick... > > > > > > > > Luis > > > > > > > > --- o.cook@etoncollege.org.uk 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@yahoo.com] > > > > > > 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 > > > > > >

« previous php.db (#4601) next »