Jump to content
Larry Ullman's Book Forums

Search the Community

Showing results for tags 'money_format'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Single Editions
    • Modern Javascript: Develop and Design
    • The Yii Book
    • Effortless Flex 4 Development
    • Building a Web Site with Ajax: Visual QuickProject
    • Ruby: Visual QuickStart Guide
    • C++ Programming: Visual QuickStart Guide
    • C Programming: Visual QuickStart Guide
    • Adobe AIR: Visual QuickPro Guide
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
    • PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (1st Edition)
  • PHP for the Web: Visual QuickStart Guide
    • PHP for the Web: Visual QuickStart Guide (5th Edition)
    • PHP for the Web: Visual QuickStart Guide (4th Edition)
    • PHP for the Web: Visual QuickStart Guide (3rd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (2nd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (1st Edition)
  • Effortless E-commerce with PHP and MySQL
    • Effortless E-Commerce with PHP and MySQL (2nd Edition)
    • Effortless E-Commerce with PHP and MySQL
  • PHP Advanced: Visual QuickPro Guide
    • PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
    • PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
    • PHP Advanced: Visual QuickPro Guide
  • MySQL: Visual QuickStart Guide
    • MySQL: Visual QuickStart Guide (2nd Edition)
    • MySQL: Visual QuickStart Guide (1st Edition)
  • Other
    • Announcements
    • Newsletter, Blog, and Other Topics
    • Forum Issues
    • Social

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. I've nearly finished on a form for someone and its working fine except for a couple of display errors. 1. Form validation errors are displayed in a span next to the corresponding form field, but the error messages are not picking up the css. When I tested using html only, the css styles were applied. Here is the html output <!DOCTYPE html> <html> <head> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <meta charset="utf-8"> <title>Circuit Quote - assembly only budget</title><link href="styles.css" rel="stylesheet" type ="text/css" /> </head> <body> <div class="formWrap"> <form action="#" method="post"> <p>Circuit Quantity<label for="circuit_qty"><input type="number" id="circuit_qty" name="circuit_qty"/></label> <span class="error">Please enter a quantity</span></p> <p>Number of Different Components per Circuit<label for="num_circuit_components"><input type="number" id="num_circuit_components" name="num_circuit_components"/></label> <span class="error">Please enter the number of different components per circuit.</span></p> <p>Email me my quote<label for="email"><input type="email" id="email" name="email" size="30" placeholder="Enter your email address here"/></label> <span class="error">Please enter a valid email address</span></p> <p><input type="submit" value="submit" class="button" /><input type="hidden" value="aob" name="form_name" /></p> </form> <p class="centre">Assembly only budget quotation</p> </div> </body> </html> and here is the php script <div class="formWrap"> <form action="#" method="post"> <p>Circuit Quantity<label for="circuit_qty"><input type="number" id="circuit_qty" name="circuit_qty"/></label> <?php if (isset($errors['circuit_qty'])) echo '<span class="error">' .$errors['circuit_qty'] . '</span>';?></p> <p>Email me my quote<label for="email"><input type="email" id="email" name="email" size="30" placeholder="Enter your email address here"/></label> <?php if (isset($errors['email'])) echo '<span class="error">' .$errors['email'] . '</span>';?></p> <p><input type="submit" value="submit" class="button" /><input type="hidden" value="aob" name="form_name" /></p> </form> and the css .formWrap {width:90%;margin:20px auto; background-color:#151b97; color:#d7d7d7; font-family:trebuchet, sans-serif;padding:10px; overflow:hidden;} .clear {clear:both; } input {border:1px solid yellow; background-color:#151b97;margin-left:15px; color:yellow; width:120px;} input[type=email]{width:300px;} .clearfix {clear:both;} #data_table {width:60%; margin:auto;} td {padding:2px 4px;} .button {color:#d7d7d7; border:1px solid #d7d7d7;} .centre {text-align:center;} .error { color:#d9a100; } I've run the html and the css through the W3C validators and no errors came up. So this is puzzling. 2. I'm using money_format() to display a table of prices and want the prices to align vertically in the columns so that all the commas and decimal points are aligned. I've looked up the function in the php manual and I"m not sure this function caters for what I want. Anyone know of an alternative?
×
×
  • Create New...