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



> 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.


If the goal is to change the way the form buttons look, I think the
easiest way would be to use CSS and not create graphic files.  For one
thing, you can keep using HTML to structure the form and secondly, this
makes your shopping cart code slightly more re-usable in that you don't
have to create new graphics should you want to use the same code for
another site -- you just change the values in the CSS file.

The only drawback is that Safari and Camino (and OmniWeb?) uses Apple's
Aqua widgits to display form buttons and totally ignores any CSS rules.
But, for the ease in which you can change the look of your buttons on
non-Cocoa-interface browsers, I think the CSS route is worth it.

HTH,
..dean
_______________________________________________
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.




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.