Newbie question...

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
Cr00zng
Forum Newbie
Posts: 13
Joined: Mon Oct 05, 2009 7:15 pm

Newbie question...

Post by Cr00zng »

This drives me nuts and it's probably very simple...

I use "FORM" to create click-able links with this syntax:

Code: Select all

<FORM action=xyz.php method=post>
<INPUT type=submit value="Whatever"></FORM>
This works just fine and does what I intended to do except the default form colors that I need to change. And that's where I hit the wall, I could not find any reference as to changing the color for the background or the font. Nor do I see how CSS, HTML, etc would be able to control php form colors.
Is there a way to change php form default colors within or outside of the form statement?
TIA...

Cr00zng
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Newbie question...

Post by requinix »

Cr00zng wrote:Nor do I see how CSS, HTML, etc would be able to control php form colors.
How about you forget that little notion and look into CSS and HTML?

That <form> and <input> are HTML, which means you can use CSS to affect how they look.
Cr00zng
Forum Newbie
Posts: 13
Joined: Mon Oct 05, 2009 7:15 pm

Re: Newbie question...

Post by Cr00zng »

tasairis wrote: How about you forget that little notion and look into CSS and HTML?

That <form> and <input> are HTML, which means you can use CSS to affect how they look.
Did you mean like this?

Code: Select all

<FORM action=xyz.php method=post>
<INPUT type=submit value="Whatever" style="background-color:#123456"></FORM>
Yeah, that'll work. 8O
Thanks!

Cr00zng
Post Reply