Hi Guys!
I was wondering if anyone could shed some light on this problem.
I recently changed my login forms ugly default submit button to and image. The problem being that the image is submitting the form but I'm not getting the results I hoped for. It isn't logging me in or showing any other error messages e.g. Wrong password.
So I ran:
echo '<pre>';
print_r($_POST);
echo '</pre>';
Which gave my the following array after entering an example and clicking the submit image button:
Array
(
[username] => test
[password] => test
[submit_x] => 64
[submit_y] => 14
)
I was hoping someone could shed some light on my problem.
My PHP goes something like:
<?
if(isset($_POST['submit'])){
//LOGIN PHP CODE
}else{
// Show login form
}
?>
I know my PHP is alright as it works fine without an image button.
Thank you for any help in advance :)
Public-Image