0

hi I have an input with the type equal to image and I am trying to get check the postback. if the type is submit then I just check the name what do I check for the image?

<input type="image" src="somehting.jpg" alt="Buy Now" title=" Buy Now " id="addPartBtn">

else if($_POST['?']{

I put a question mark in the code where im nto sure what to check for.

arrowill12
  • 1,784
  • 4
  • 29
  • 54
  • 1
    Possible Duplicate: **[Can't find an input type=image value in $_POST](http://stackoverflow.com/questions/5681837/cant-find-an-input-type-image-value-in-post)** – Siva Charan Jun 21 '12 at 05:06

2 Answers2

0

You could also have name for input type image.

<input type="image" name="iamge" src="somehting.jpg" alt="Buy Now" title=" Buy Now " id="addPartBtn">
xdazz
  • 158,678
  • 38
  • 247
  • 274
0

Try this, it works

<input type="image" name="iamge" src="somehting.jpg" alt="Buy Now" title=" Buy Now "          id="addPartBtn">

if(isset($_POST["iamge_x"]) && isset($_POST["iamge_y"]))
{
// then write your code
}
Shaik Baba
  • 112
  • 2