Ad block is installed and active. Please support us by disabling it.
HomeSunday, August 20, 2017, 22:45:42
9

Bookmark Current Page - PHP Tutorial

Tuesday, February 10, 15, 15:24:04, 3 Yaers Ago Via wain, Hits: 2961
Bookmark current page with PHP example.
Example:
Code:
<?php
function get_url() {
if($_SERVER['HTTPS']) {
$linkurl = 'https://';
} else {
$linkurl = 'http://';
}
$linkurl .= $_SERVER['HTTP_HOST'];
if($show_port) {
$my_url .= ':'.$_SERVER['SERVER_PORT'];
}
$linkurl .= $_SERVER['SCRIPT_NAME'];
if($_SERVER['QUERY_STRING'] != null) {
$linkurl .= '?'.$_SERVER['QUERY_STRING'];
}
return $linkurl;
}
$myurl = get_url();
?>
///////////////////////////////////////////////////////////////////////////
<a href="javascript:window.external.AddFavorite('
<?php echo $myurl ?>', 'Example.com')">
<img src="http://www.example.com/images/example.gif"
border="0"></a>

Sign In

Sponsor

Related

Smarty - Create dynamic Web Pages with PHP & MySQL

Creating Dynamic Web Pages Using Smarty and MySQL - Requirement(s): PHP Server, MySQL

PHP imagecreate

imagecreate() returns an image identifier representing a blank image of specified size.

PHP Tutorials

Useful step-by-step PHP tutorials for beginners

PHP $_POST Function

Collect values from a form sent with method post

PHP Form Validation

PHP form validation :: PHP tutorial, requirement(s): PHP Server

Process Form Data with Jquery

jQuery, Process form data

Preg_Match - PHP Form Validation

PHP form validation with preg_match

PHP Form Basic

PHP Form - PHP form basic, Requirement(s): PHP Server

PHP $_GET Function

Get function in PHP
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.