Solved

How Can I Set Multiple Colour Text (Font Color) Option To To My Uploading Panel Scricpt ?

Posted on 2016-11-29
8
13 Views
Last Modified: 2016-12-01
<div class="submenu">
    <div align="left">
        <form action="update_db.php" method="post" enctype="multipart/form-data" onsubmit="return chkfrm(compulsory,dispError,this)" class="niceform">
            <fieldset>
                <dl>
                    <dt><label for="Title">Title:</label></dt>       [Note-Here I want To Add Colour Option in my Panel,Full Script Is Attached]
                    <dd><input type="text" name="name" id="" size="54" /></dd>
                </dl>
                <dl>
                    <dt><label for="Upload from url">Link:</label></dt>
                    <dd><input type="text" name="link" id="" size="54" /></dd>
                </dl>
                <dl class="submit">
                    <dt></dt>
                    <dd>
                        <input type="submit" name="submit" id="submit" value="Submit" />
                    </dd>
                </dl>
            </fieldset>
        </form>
    </div>
</div>
0
Comment
Question by:Funky Guy
  • 4
  • 3
8 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
[Note-Here I want To Add Colour Option in my Panel,Full Script Is Attached]
Please post the attachment, thanks.
1
 

Author Comment

by:Funky Guy
Comment Utility
i have attach 2 files,that should help...if you need any more files then please Reply
Thankss In Advance
update_db.php
index.php
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Can you elaborate what you mean by
How Can I Set Multiple Colour Text
0
 

Author Comment

by:Funky Guy
Comment Utility
sir,Julian Hansen
whenever i run this script,The Text Shown are Black in color,I want them to be in different color,i want options for color choosing
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Ok I am still confused.

Colour is controlled by CSS

So you could add the following to your stylesheet
.submenu dl label {
   color: purple;
}

Open in new window

That will make all your label's in the .submenu dl elements purple.
0
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
Comment Utility
I also don't understand your scripts
In your index.php you have
<?php include '../header.php'; ?>

Open in new window

And the last line of header.php you have
header("location: index.php?errid=13");

Open in new window

Looks like a loop to me
Having said that here is a sample based on your code that changes the colour and background of the <label>'s

<!doctype html>
<html>
<head>
<style type="text/css">
.submenu dl label {
  color: yellow;
  background: green;
}
</style>
</head>
<body>
<h2></h2>
<h2 style="background-color:#0099CC;">&nbsp;&nbsp;<a style="color: #FFFFFF" class="menuitem submenuheader" href="">Add Updates &nbsp;</a></h2>
<div class="submenu">
  <div align="left">
    <form action="update_db.php" method="post" enctype="multipart/form-data" onsubmit="return chkfrm(compulsory,dispError,this)" class="niceform">
      <fieldset>
        <dl>
          <dt><label for="Title">Title:</label></dt>
          <dd><input type="text" name="name" id="" size="54" /></dd>
        </dl>
        <dl>
          <dt><label for="Upload from url">Link:</label></dt>
          <dd><input type="text" name="link" id="" size="54" /></dd>
        </dl>
        <dl class="submit">
          <dt></dt>
          <dd>
            <input type="submit" name="submit" id="submit" value="Submit" />
          </dd>
        </dl>
      </fieldset>
    </form>
  </div>
</div>
</body>
</html>

Open in new window

0
 

Author Closing Comment

by:Funky Guy
Comment Utility
thanxx alot
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
You are welcome.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
FTP File permissions 1 27
php documentation 4 19
Multiple methods, one main controller in Codeigniter 6 19
Phone Dialer 5 33
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now