Tuesday, July 3, 2012
PHP - Get full web page URL from address bar
PHP - Get full web page URL from address bar
Syntax
<?php
$server=$_SERVER['HTTP_HOST'];
echo $server;
$request_url=$_SERVER['REQUEST_URI'];
echo $request_url;
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo $url;
?>
Java Script:
This is an example of javascript and php script, click to select all text in text box like infobrainz.com or many other site.
<head>
<script type="text/javascript">
function select_all()
{
var text_val=eval("document.form_name.type");
text_val.focus();
text_val.select();
}
</script>
</head>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment