Re: Possible to buffer output to make HTML anchors work?

From: Date: Fri, 14 Sep 2001 01:38:26 +0000
Subject: Re: Possible to buffer output to make HTML anchors work?
Groups: php.general 
Request: Send a blank email to php-general+get-67295@lists.php.net to get a copy of this message
Phillip and David, The output control functions worked perfectly. You saved me many hours of frustration and wasted time. Thanks so much! Rebecca
From: David Robley <huntsman@www.nisu.flinders.edu.au> Reply-To: huntsman@www.nisu.flinders.edu.au To: "Rebecca Donley" <houserabbit@hotmail.com>, php-general@lists.php.net Subject: Re: [PHP] Possible to buffer output to make HTML anchors work? Date: Fri, 14 Sep 2001 10:20:39 +0930 On Fri, 14 Sep 2001 08:59, Rebecca Donley wrote: Hi all, I am switching from VBScript/ASP to PHP and have run into a problem with HTML anchors. My page has a list of links generated from a db. The links reference a second page, which displays multiple records from the db to include the referenced one. I need that page to load to the selected record based on the link from the previous page, with the other records ouputted before and after the selected record. Since the selected record's location will vary on the page I need to use the html <a href=name> anchors. The names of these anchors are also generated from the database. The second page is loading to the top of the page, regardless of the anchors, which appear correctly in the html source code. I suspect this is because my include header files are being sent to the browser before the anchors are generated. In ASP I could set the buffer to send the output to the browser all at once, which would solve this problem (I think) but I can find nothing similar in PHP. Is there anything? Or is there another way around this problem? Thanks in advance for any help or suggestions. Rebecca Output control functions may be what you are looking for. http://www.php.net/manual/en/ref.outcontrol.php --
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA
Even a hawk is an eagle among crows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

« previous php.general (#67295) next »