Jump to content

PHP form and isset


-Karl-

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/185287-php-form-and-isset/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.