Reply to Re: [PHP 5 XP IE6]header("test"); does not display

Your name:

Reply:


Posted by Treefrog on 03/23/06 18:25

universalbitmapper wrote:
> Hi,
> I'm trying a simple form.html that call a .html script that begins
> with:
>
> <?php
> header("This is a test");
> ?>
>
> When I click on the link, I get blank page.
>
> I tried every combination of .html and .php as extensions, none works.


Hmm.... To elaborate on the other reply slightly, header("Test"); will
output "Test" into the http headers. The headers are the bit that tell
the browser that it's about to receive a file or a web page etc and is
to all intents and purposes, invisisible to the end user. As a rough
rule, you wont need to use the header() function until you're fairly
advanced with PHP, with possibly the exception of header("Location:
anotherpage.htm"); that which redirects the browser to anotherpage.


If you want to display text to the user (browser) then use echo "Test";

Good luck.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация