PHP Classes

image submit

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  image submit  >  (Un) Subscribe thread alerts  
Subject:image submit
Summary:position important?
Messages:4
Author:bob smith
Date:2007-06-22 15:18:25
Update:2007-06-25 13:10:47
 

  1. image submit   Reply   Report abuse  
Picture of bob smith bob smith - 2007-06-22 15:18:25
Image submit button is not working for me. Also, in a form with multiple submit type buttons, one of the button would not work when I use WasSubmitted().

Is the Image x,y position returned by HTTP_VARS important? Is there anything special I have to know about image submit? I read the documentation and it says it should work fine. I just want to make sure there is nothing special I have to do to get Image submit to work.

Thanks for you time!

  2. Re: image submit   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-06-22 22:35:49 - In reply to message 1 from bob smith
How did you define the image submit input?

Make sure it has a NAME argument.

  3. Re: image submit   Reply   Report abuse  
Picture of bob smith bob smith - 2007-06-25 12:41:27 - In reply to message 2 from Manuel Lemos
$form->AddInput(array(
'TYPE'=>'image',
'NAME'=>'myimage',
'ID'=>'myimage',
'ALT'=>'myimage'));


<input type="image" name="myimage" id="myimage" src="images/flag1.jpg" alt="myimage">


--After running, in the http_vars, I got:

Array ( [myimage_x] => 75 [myimage_y] => 56 )



Does everything look good here Mr. Lemos? I fixed my submit buttons, but I am still having trouble with my image submit. Thank you for your time.



  4. Re: image submit   Reply   Report abuse  
Picture of bob smith bob smith - 2007-06-25 13:10:47 - In reply to message 3 from bob smith
I was looking at your video and example files again, I forgot to include 'SRC'=>"source of file". Thanks so much for your work.