Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Graphic Submit Button



Not sure to follow you,
but there are a type image, that acts as a submit button, so the only thing that you need to do is something like
<input type="image" src="to_your_image" value="..." ...>


And in PHP you could know which button was pressed if you evaluate the value passed for each button


Mauricio

macmec wrote:

Hey all,

I'm working with PHP, making a shopping cart/store and I'm curious if there's a good way to use graphic buttons to accomplish the same thing as the submit button. Since the input type becomes image, I could check for that in my PHP script, but the problem is, some of the forms have multiple buttons, so there would be more than one input with type image. I'm not sure if there's another way to go about submitting a form (via POST) to accomplish this. Any thoughts would be very appreciated.

macmec ~ email@hidden
This message was sent from an Apple PowerBook G4. Epitome of creativity.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Graphic Submit Button (From: macmec <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.