Okay, so I have my form:

<form method="get" action="./plans.php"><INPUT TYPE="image" SRC="images/learn_more.png" ALT="Submit Form" NAME="piglet" class="learn-more-image"></form>

And I have my isset:

if(!isset($_GET['piglet'])){
Hi
} else {
Hello
}

The problem is with the form, when I click a link it comes up with .php?piglet.x=44&piglet.y=8 instead of .php?piglet which it was it needs to function correctly.

Any ideas?

    That's what image-type input submit tags do. If you don't want that behavior, you can use a button tag (with a little styling) instead:

    <html>
    <head>
    <title>Test</title>
    <style type='text/css'>
    #test {
       background: transparent;
       border: none;
       padding: 0;
    }
    </style>
    </head>
    <body>
    <form action="" method="get">
    <button id='test' name="test" type="submit" value='submit'><img src="image.png" alt="Test" /></button>
    </form>
    <?php
    if(isset($_GET['test']))
    {
       echo "<p>Test</p>";
    }
    ?>
    </body>
    </html>
    
      Write a Reply...