Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] Header() in relation to other html elements From: Alan Wicks (aswicks <email protected>)
Date: 03/22/99

Greetings,

Just a note to FP98 users. You can use the Header()
function if you go to HTML view and delete all HTML tags
from the page. Then enter the

<script language="php">Header("Location:
http://www.hughes.com.au/");
exit;</script>

as the only thing on the page at the very top.

When you go to save the file.php3 it will enter the
<html>...</html> tag set in again after the final </script>,
but it won't matter. The page will work.

----
You can also pass the variable $url from a form so you can
use this to select URL's from a drop down list.

<script language="php">Header("Location: $url"); exit;</script>

Alan S. Wicks

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>