Page 1 of 1

PHP buttons/images

Posted: Mon May 31, 2010 1:58 am
by Rastan
I'm still pretty new to PHP and coding in general so be easy on me if this is dumb/has been covered and I didn't see. I have tried to look more into this but I don't see a conclusive answer to this question.

I'm trying to figure out if theres a way to make buttons in PHP other than just having a grey button or going with a link type text. i.e. If I wanted to make a graphic and have it display for my button fully customized.


Thanks in advance for your time.

-Rastan

Re: PHP buttons/images

Posted: Mon May 31, 2010 3:44 am
by Jackolantern
CSS can style buttons. Here is a page about how to do it. And here is another one.

Re: PHP buttons/images

Posted: Mon May 31, 2010 5:22 am
by Rastan
Thanks that clears it up some.

Re: PHP buttons/images

Posted: Mon May 31, 2010 5:29 am
by Jackolantern
For more advanced techniques, you can also use Javascript. However, it is much easier to see if CSS can do what you need first.

Re: PHP buttons/images

Posted: Mon May 31, 2010 6:05 am
by Rastan
I think that will do what I want for the submit type buttons. I'm playing with making/using images for link inputs. I think that will handle the rest of it. I didn't put it all together until I happened to catch a line out of what you linked me so thanks for that. For some reason CSS, links, and submit type buttons have been confusing me since I started messing with coding.