You are here: Re: back to html page from php « PHP Programming Language « IT news, forums, messages
Re: back to html page from php

Posted by Marcin Dobrucki on 11/13/06 08:17

Skijor wrote:
> How do you go back to the html page you came in from from inside a php
> script?

ehh, how do you mean? If you have an html page that includes php
(and your server is configured to parse .html as php, then:


<html>
<head><title>...</title></head>
<body>
<?php echo "Hello World!"; ?>
</body>
</html

if you mean executing a php script, and then redirecting, then its
something like this:

** php script*
if (TRUE == $jump) {
// yes yes, lets be complient
header("Location: http://www.somewhere.com/page.html");
}

** html page **
<html>
<head><title>...</title>/head>
<body>
<h1>Hello world</h1>
<p>you were redirected from php</p>
</body>
</html>

/Marcin

 

Navigation:

[Reply to this 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

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