<?
if(!$_SERVER[HTTP_REFERRER]) = 'index.php'
{ echo "No access"; }
else
{
// display page
}
?>
or, you can set a cookie, or a session, or pass a hidden variable, or
about 21312 other methods :)
Hendra Susanto wrote:
> i have a block_search.php,
> but i don't want people to access it directly.
> It has to go from a link that i provide in index.php.
> how do i do it?
> many thanks before..
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/