|
-
Owner of the ™ thread
I am using PHP NUKE . In which I get blocks whose colours I can define editing the theme.php file. But in someplaces I have form elements like Search Box , Login Box , Select Topics which are nothing but text areas . In html , i can customize the background color of the text-area using <style ="Background-color: #CCCCCC"> for example . But here , these form elements (text areas) are defined in the PHP files which I descibe below :
<quote>
$title = _LOGIN;
$boxstuff = "<form action=\"user.php\" method=\"post\">";
$boxstuff .= "<center><font class=\"content\">"._NICKNAME."<br>";
$boxstuff .= "<input type=\"text\" name=\"uname\" size=\"8\" maxlength=\"25\"><br>";
$boxstuff .= ""._PASSWORD."<br>";
$boxstuff .= "<input type=\"password\" name=\"pass\" size=\"8\" maxlength=\"20\"><br>";
$boxstuff .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
$boxstuff .= "<input type=\"submit\" value=\""._LOGIN."\"></font></center></form>";
</quote>
I don't enough PHP to do my work here . Can anyone help me ? What do I use here to have the same effect i.e having the background color different from the default "white" ? I want to use this color #8DADD0 .
-
Hi,
simply put the style="...." thing where you would put it in html, say at <input style="...."
Change the " you add into \" so they look like the other quotes already there
<input style=\"...\" type=\"text\"
Musicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|