Image Submit Form Bug in IE

Came across a really weird issue with the customer account login form on one of the sites I manage yesterday. Because this is a small form with only 2 fields and an image for the submit button Internet Explorer does not send the value of the submit button so because I was checking for that value to fire the login it never worked !

The answer was to check for the current page to have been submitted and a post array exists.

How to get the full url of the page you are viewing with PHP

I needed to get the full URL of the page being viewed today in my Very Simple CMS to insert into a database table for tracking page views, so I thought I would put the function I came up with here to remind me when I need it again in the future !

<?php
/*
Get Current Page Full URL
----------------------------------------------------------
*/
function i8_GetFullURL() {
// start concatenating the url
$currentURL = 'http://';
// add Server Name and Request URL
$currentURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
// return the current page url
return $currentURL;
}
?>

To print the URL to your page simply use this code:

<?php
// print current pages url
echo i8_GetFullURL();
?>