Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-11-29
8
Medium Priority
?
99 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
[X]
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
  • 4
  • 3
8 Comments
 
LVL 111

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 58

Expert Comment

by:Julian Hansen
ID: 41906796
Can you elaborate what you mean by
How Can I Set Multiple Colour Text
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 58

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 58

Accepted Solution

by:
Julian Hansen earned 2000 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 58

Expert Comment

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

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

719 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