Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2016-11-29
8
76 Views
Last Modified: 2016-12-28
<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 109

Expert Comment

by:Ray Paseur
ID: 41906568
[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
ID: 41906781
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 55

Expert Comment

by:Julian Hansen
ID: 41906796
Can you elaborate what you mean by
How Can I Set Multiple Colour Text
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

Author Comment

by:Funky Guy
ID: 41906798
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
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 41906837
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 55

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41906843
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
ID: 41908551
thanxx alot
0
 
LVL 55

Expert Comment

by:Julian Hansen
ID: 41908622
You are welcome.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
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.

828 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