Check which page called this php? -
here i'm dealing with:
let's have php page:
<?php // php stuff ?> and have 2 html pages action sends them php page. on php page, want 1 thing if comes 1 of html pages, , else if comes other. cannot pass explicit variables php page, need check page called php.
i have tried:
$_server['php_self'] when access this, doesn't seem send referring page. $_server['http_referer'] gives previous page 1 im looking for.
for example:
html page1 form calls php page --> want variable in php contains html page1. html page2 form calls php page --> want variable in php contains html page2.
thanks help. please allow me know if there's way can clarify question.
if domain differs can use:
$_server['server_name']; but in scenarios help:
$_server['request_uri']; giving finish url called.
php
No comments:
Post a Comment