clicking on image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
naeem084
Forum Newbie
Posts: 7
Joined: Mon Aug 17, 2009 12:16 am

clicking on image

Post by naeem084 »

hi....

for submitting a form i need to click on the image and i dnt know how to do that... need help
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: clicking on image

Post by jackpf »

Code: Select all

<input type="image" src="whatever.jpg" />
naeem084
Forum Newbie
Posts: 7
Joined: Mon Aug 17, 2009 12:16 am

Re: clicking on image

Post by naeem084 »

yeah thats fine but if i click on the image how could it submit my form like submit button submitting a fom
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: clicking on image

Post by requinix »

Oh, well, in that case

Code: Select all

<input type="image" src="whatever.jpg" />
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: clicking on image

Post by jackpf »

naeem084 wrote:yeah thats fine but if i click on the image how could it submit my form like submit button submitting a fom
It does. Idk how you're using it, but that's what it does.
tasairis wrote:Oh, well, in that case

Code: Select all

<input type="image" src="whatever.jpg" />
And lol, what? That's exactly what I put :P
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: clicking on image

Post by requinix »

jackpf wrote:And lol, what? That's exactly what I put :P
Precisely my point :D
Post Reply