Calculating/Validating with numbers or text

Hi,
I have a form with different fields (numeric and text)
The user has to enter results of a test in this
fields. In case of numeric results I use a script to validate that the result is within a specified range.
Sometimes the user must fill in a text in these numeric fields.
The result is that text is not accepted in numeric fields and the
value is set to 0.
Can I validate a result in a text field? or
Can I format the numeric field, so that text is accepted but the validation
works?
best regards
A.X. Wimmer

Hi,
You are sorting text fields, and thiis why you are getting this order. when sorted as text, 24 will come before 4, because it starts with a 2.
If you want to sort by numbers, I suggest you add a column to the table which will be an expression box with a "number" data type. Now you can assign in the expression fileld- "NVAL(@XXX)", when XXX is the text field you want to sort by. Now clicking on the expression boc column header will sort by numbers.
You can also make the XXX field invisible, so it will not be displayed twice.
Best regards,
Udi

Similar Messages

  • Adding Cells with numbers and text

    I am a real newbie at formulas - so if there is an obvious answer I am sorry.
    I am looking to add week numbers for a custom calendar. So in one cell I have Week 1. I am looking to have the following week add 1 to that - but keep the text Week - so we get Week 2. How can I easily go about this? Thanks

    That was interesting!
    The most difficult part was getting the calendar to recognize the closing days and make the necessary adjustments. Here's the result for September calendar, with the school year starting September 1 to demonstrate the effect of a closing day inserted after the year begins. (One fitting your year is shown below.)
    The small table to the right, "No School" is a one column table listing, in order, the dates (not including Sundays) on which the school will be closed. For periods where the school is closed for 2 or more consecutive days, each day must be included in the list. The table has two header rows and one footer row. As written, the formulas using this table require A1 to contain a non-date value, A2 to contain the date of the day before the first day of school—in the example, August 31, 2011; in your case, September 5, 2011, and the Footer row to contain a date after the last day of school.
    The cell displaying the month name, and all cells showing a day number, contain a Date and Time value, with the display determined by two Custom formats, set using the Cell Format inspector. The contents of the cells are used in calculations, and must be Date and Time values, not numbers.
    Row 1 is a header row.
    The full date for the first of the month to be shown is entered into the center cell in row 1. (This is a merged cell formed from the three cells C1, D1 and E1. Formulas using the value refer to it as C1.)
    G1: =EOMONTH(C1,0)
    This returns the date for the last day of the month of the date in C1. The date is used in a conditional formatting rule in the last row of the calendar. It can be hidden by setting the text color of this cell to match its background fill color (white).
    Row 2 is a header row, containing the names of the days of the week, using the Sunday to Saturday arrangement to match the illustration linked by the OP. A different starting day will require revisions to some formulas.
    A3: =C1-WEEKDAY(C1,2)
    This formula calculates the date of the last Sunday before the date in C1. If you don't like the fact that the "2" displays as "Monday is 1", the version below will produce the same result, with the second argument displaying as "Sunday is 1"
    A3: =C1+1-WEEKDAY(C1,1)
    B3: =A+1
    Adds 1 (day) to the date in A1. Fill this formula Right to column G.
    Select all cells in row 3 and format as Custom, Type: Date and Time, and including only the Day of Month element.
    B4: =(IF(MATCH(B3,No school :: $A,1)=MATCH(B3,No school :: $A,-1),"closed",("Week "&QUOTIENT(DATEDIF(No school :: $A$2,B3,"D")-MATCH(B3,No school :: $A,1),7)+1)))
    Fill this formula from B4 to G4. (Note that there is no entry in A4)
    At its heart, this is an IF statement that returns "closed" if the date in the cell above it is on the closed list or the text "Week n" if that date is not on the list.
    The first MATCH statement matches the 'largest' date less than or equal to the test date (in B3); the second matches the 'smallest' date equal to or more than the test date (in B3). If the date is on the list, both of the two MATCH statements will return the same value, and IF will return "closed".
    If the date is not on the list, the two MATCH statements will return different values, and IF will pass control to the "if false" part of the formula (everything following "closed", ).
    DATEDIF calculates the number of days since the first day on the No School list and subtracts the number of 'no school' dates in that time, using MATCH), then finds the Quotient when that number is divided by 7 (days in a week) and adds 1 to determine the week number. The concatenation operator ( & ) tacks that number to the end of the text string "Week " and returns the result.
    As can be seen in the Monday and Tuesday cells in row 4, the formula will return an error message (MATCH was unable to find...) if the date is earlier than any on the table. To eliminate this, insert IFERROR between the = sign and the parenthesis at the beginning of the formula, and ,"" (comma-quote-quote) between the last and next to last parentheses at the end. This is necessary ONLY on the first date row of the September calendar, so the change can be delayed until you have made a duplicate of the completed calendar table.
    Next, Select rows 3 and 4, then drag the Fill handle down two rows to copy all formulas into rows 5 and 6. Although the results may look correct, you should replace the formula in A5 with the one below:
    A5: =A3+7
    With that change made, select rows 5 and 6, then Fill down to rows 11 and 12.
    Conditional format rule: A3 - F3
    Set the rule: With Dates  Before the Date  C1
    Conditional format rule: A11 - G11
    Set the rule: With Dates  After the Date  G1
    The default format for both these rules is the grey text shown for the August and October dates on the September calendar.
    For months where another row of dates is needed, use the Add/Delete rows handle at the lower left of the active table to add two rows, select rows 11 and 12, and fill down. The filled cells will include the formatting set here.
    To create calendars for the rest of the months, select the table icon for the one completed, press command-D to duplicate it, move it to a free location, then enter the date for the first day on the month you want into cell C1 of the new calendar. Here's the result for May, 2012:
    And here's the September calendar fitted to your school year beginning on September 6, with no other closings in September (and with the error trap mentioned above applied to the first week of dates).
    Regards,
    Barry
    PS: email me directly for a copy of the file. Address available by clicking my name.

  • After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?

    After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?
    I have tried to convert the pdf to Word instead but same difficulty with numbers: look like numbers but not usable for calculations

    Excel has a 'text to numbers' function, I would use that.
    Convert text to numbers. Microsoft Excel.

  • Routing of emails with valid Service Ticket Tracking Text

    Hi Experts,
    System: SAP CRM 2007 (ERMS)
    If an email is send to the ERMS system with a valid Service Ticket Tracking Text, based on the rule:
    If
    Service Ticket Responsible Is Not Equal To ""
    Then
    Route to Service Ticket Responsible ( Route To (On Exception) = "" )
    The email can be routed to the Service Ticket Responsible of the Service Ticket or a default org.
    My requirement is to route the email with a valid Service ticket tracking text to the Responsible Org (Service Employee Group) of the Service Ticket.
    How can this be made possible. Can any one guide me with the Steps.
    Regards,
    Namita
    Edited by: Namita Singh on Jul 10, 2009 8:42 AM

    Hi Namita,
    I was trying to simulate your condition and i thought the following could be useful to you.
    You validate your tickets based on "Text" for them to be put into the ERMS --(Is it true?)
    and then you want the service ticket responsible org to be intimated about the ticket
    while selecting the action/parameters --> You will need to add the entry Route E-mail , this will give you the organization unit object .
    At the back end in the service manger profile the service id for this is -->AH_ROUTE and the class is CL_CRM_ERMS_AH_ROUTE
    There should be an enhancement written in this class for the identification of the Responsible org unit partner function org so that it gets identified as the org to be intimated about the ticket.
    The other way is to add the service FG_SVCTKT to your service manger profile(guess it should be the default one) so that then you can check for the Actions/parameters to assign the partner function holding the responsible org data.
    Hope this helps
    Regards
    Raj

  • David Powers --- Regarding form validation with dreamweaver behaviors

    I am in the chapter teaching about form validation with the Zend Framework. I have done the entire lesson with the lesson files and everything works perfectly...
    but I went back to use the form valdation techniques for my own site and it is not working properly. In the book, Chapter 6 teaches how to create a user login and editing the database through the site. But in chapter seven the form validation does not build on top of this and therefore does not teach how to integrate the form validation with the registered user already set up.
    I have user registration completly working on my site and everything runs fine. I am trying to add the form validation but it is all completly ignored. When I leave a field blank it simply takes me to another blank page that reads "Column 'first_name' cannot be null"
    here is index.php code...
    <?php require_once('Connections/CSSU_Write.php'); ?>
    <?php require_once('Connections/CSSU_Read.php'); ?>
    <?php require_once('script/user_registration.php');
    ?>
    <?php
    if (isset($_POST['password'])) {
              $_POST['password'] = sha1($_POST['password']);
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO sign_up (first_name, family_name, user_email, password, gender, bday_month, bday_day, bday_year) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['last_name'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['gender'], "text"),
                           GetSQLValueString($_POST['bday_month'], "text"),
                           GetSQLValueString($_POST['bday_day'], "text"),
                           GetSQLValueString($_POST['bday_year'], "text"));
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $Result1 = mysql_query($insertSQL, $CSSU_Write) or die(mysql_error());
      $insertGoTo = "login.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['email'])) {
      $loginUsername=$_POST['email'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "logoOutRedirect.php";
      $MM_redirectLoginFailed = "logoOutRedirect.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $LoginRS__query=sprintf("SELECT user_email, password FROM sign_up WHERE user_email=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $CSSU_Write) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
              if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;               
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>CSSU</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="container">
      <div class="header">
      <div class="logo">
                <a href="index.php">
                  <h1/>
            .CSSU { UNIVERSITY; }
            </h1>
            <h2>
            <code><<code>!</code>-- Learn/Apply/Master --></code>
            </h2>
        </a>
      </div> 
        <!-- end .header --></div>
        <div class="headerBar">
        <div id="nav">
                  <ul id="links">
                      <a href="#"><li>CSSU</li></a>
                      <a href="#"><li>Classes</li></a>
                      <a href="#"><li>Pricing</li></a>
                      <a href="#"><li>Degree</li></a>
                  </ul>
        </div>
        <form name="form2" method="POST" action="<?php echo $loginFormAction; ?>" class="form2">
        <p>
            <label for="email" id="email" class="loginLabel">Email:</label>
            <input type="email" name="email" class="loginField" />
            <label for="password" id="password" class="loginLabel">Password:</label>
            <input type="password" name="password" class="loginField" />
                  <input type="submit" value="Log In" name="submit" class="submit login" />
        </p>
        </form>
        </div>
      <div class="container2">
      <div class="sidebar1">
        <h1>Sign Up</h1>
        <h2>Earn an Official CSS Masters Certification!</h2>
        <table>
        <form name="form1" method="POST" action="<?php echo $editFormAction; ?>" class="form1">
        <tr >
            <td class="formLabel"><label for="firstName" id="firstNameLabel" >First Name:</label>
                      <span>
                         <?php
                                  if ($_POST && isset($errors['first_name'])) {
                                            echo $errors['first_name'];
                                  ?>
                </span>
            </td>
            <td><input type="text" name="first_name" class="inputField" id="firstName" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="lastName" id="lastName" >Last Name:</label></td>
            <td><input type="text" name="last_name" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail" id="yourEmail" >Your Email:</label></td>
            <td><input type="user_email" name="email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail2" id="yourEmail2">Re-enter Email:</label></td>
            <td><input type="email" name="reEnter_email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="password" id="password">New Password:</label></td>
            <td><input type="password" name="password" class="inputField" /></td>
        </tr>   
        <tr>
            <td class="formLabel"><label for="gender" id="gender" class="formLabel">I am:</label></td>
          <td><select name="gender" class="selectMenu selectMenu1 gender">
              <option value="select">Select Sex:</option>
              <option value="male" name="male">Male</option>
              <option value="female" name="female">Female</option>
                        </select>
          </td>
              </tr>
               <tr>
            <td class="formLabel"><label for="bday">Birthday:</label></td>
               <td>
            <select name="bday_month" class="selectMenu selectMenu1 bday">
              <option value="male">Month:</option>
              <option value="January">January</option>
            </select>
    <select name="bday_day" class="selectMenu bday">
              <option value="Day">Day:</option>
              <option value="1">1</option>
                        </select>
    <select name="bday_year" class="selectMenu bday">
              <option value="Year">Year:</option>
            </select>
         </td>
        </tr>
        <tr>
                  <td class="submitTd" colspan="2"><input type="submit" value="Sign Up" name="submit" class="submit signup" /><td>
        </tr>
        <input type="hidden" name="MM_insert" value="form1" />
        </form>
        </table>
        <!-- end .sidebar1 --></div>
      <div class="content">
        <h1>CSSU</h1>
        <!-- end .content --></div>
      <div class="footer">
        <!-- end .footer --></div>
        </div> <!-- end container2 -->
      <!-- end .container --></div>
    </body>
    </html>
    And here is user_registration.php code just for the first_name field...
    <?php
    $errors = array();
    if ($_POST) {
      // run the validation script
      require_once('library.php');
      try {
              // main script goes here
              $val = new Zend_Validate_Regex('/^[a-z]+[-\'a-z ]+$/i');
              if (!$val->isValid($_POST['first_name'])) {
                $errors['first_name'] = 'Required field, no numbers';
      } catch (Exception $e) {
              echo $e->getMessage();
    And from here, here is the library.php code....
    <?php
    $library = '.../html/zend/library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
    Zend_Loader_Autoloader::getInstance();
      $write = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      $read  = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      // Comment out the next two lines if using mysqli
      // and remove the comments from the last two lines
      $dbWrite = new Zend_Db_Adapter_Pdo_Mysql($write);
      $dbRead = new Zend_Db_Adapter_Pdo_Mysql($read);
      //$dbWrite = new Zend_Db_Adapter_Mysqli($write);
      //$dbRead = new Zend_Db_Adapter_Mysqli($read);
    } catch (Exception $e) {
              echo $e->getMessage();
    I replaced some code here to protect myself, but the library.php file is completely functional and has been tested... I am sure the problem ins't in here.
    Please let me know if you need any further code to help you out. I am brand new to PHP and so far everything has ran smoothly up til now. I have my Zend Framework uploaded to my server and tested that my site is connecting to it properly. Any help on this would be so so awesome! This is for a school project and I can't move on until this is resolved! Thank you so much for trying!
    You can also view the issue at my website... all the files have been uploaded to the server. www.CSSU.com

    I am in the chapter teaching about form validation with the Zend Framework. I have done the entire lesson with the lesson files and everything works perfectly...
    but I went back to use the form valdation techniques for my own site and it is not working properly. In the book, Chapter 6 teaches how to create a user login and editing the database through the site. But in chapter seven the form validation does not build on top of this and therefore does not teach how to integrate the form validation with the registered user already set up.
    I have user registration completly working on my site and everything runs fine. I am trying to add the form validation but it is all completly ignored. When I leave a field blank it simply takes me to another blank page that reads "Column 'first_name' cannot be null"
    here is index.php code...
    <?php require_once('Connections/CSSU_Write.php'); ?>
    <?php require_once('Connections/CSSU_Read.php'); ?>
    <?php require_once('script/user_registration.php');
    ?>
    <?php
    if (isset($_POST['password'])) {
              $_POST['password'] = sha1($_POST['password']);
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO sign_up (first_name, family_name, user_email, password, gender, bday_month, bday_day, bday_year) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['last_name'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['gender'], "text"),
                           GetSQLValueString($_POST['bday_month'], "text"),
                           GetSQLValueString($_POST['bday_day'], "text"),
                           GetSQLValueString($_POST['bday_year'], "text"));
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $Result1 = mysql_query($insertSQL, $CSSU_Write) or die(mysql_error());
      $insertGoTo = "login.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['email'])) {
      $loginUsername=$_POST['email'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "logoOutRedirect.php";
      $MM_redirectLoginFailed = "logoOutRedirect.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $LoginRS__query=sprintf("SELECT user_email, password FROM sign_up WHERE user_email=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $CSSU_Write) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
              if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;               
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>CSSU</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="container">
      <div class="header">
      <div class="logo">
                <a href="index.php">
                  <h1/>
            .CSSU { UNIVERSITY; }
            </h1>
            <h2>
            <code><<code>!</code>-- Learn/Apply/Master --></code>
            </h2>
        </a>
      </div> 
        <!-- end .header --></div>
        <div class="headerBar">
        <div id="nav">
                  <ul id="links">
                      <a href="#"><li>CSSU</li></a>
                      <a href="#"><li>Classes</li></a>
                      <a href="#"><li>Pricing</li></a>
                      <a href="#"><li>Degree</li></a>
                  </ul>
        </div>
        <form name="form2" method="POST" action="<?php echo $loginFormAction; ?>" class="form2">
        <p>
            <label for="email" id="email" class="loginLabel">Email:</label>
            <input type="email" name="email" class="loginField" />
            <label for="password" id="password" class="loginLabel">Password:</label>
            <input type="password" name="password" class="loginField" />
                  <input type="submit" value="Log In" name="submit" class="submit login" />
        </p>
        </form>
        </div>
      <div class="container2">
      <div class="sidebar1">
        <h1>Sign Up</h1>
        <h2>Earn an Official CSS Masters Certification!</h2>
        <table>
        <form name="form1" method="POST" action="<?php echo $editFormAction; ?>" class="form1">
        <tr >
            <td class="formLabel"><label for="firstName" id="firstNameLabel" >First Name:</label>
                      <span>
                         <?php
                                  if ($_POST && isset($errors['first_name'])) {
                                            echo $errors['first_name'];
                                  ?>
                </span>
            </td>
            <td><input type="text" name="first_name" class="inputField" id="firstName" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="lastName" id="lastName" >Last Name:</label></td>
            <td><input type="text" name="last_name" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail" id="yourEmail" >Your Email:</label></td>
            <td><input type="user_email" name="email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail2" id="yourEmail2">Re-enter Email:</label></td>
            <td><input type="email" name="reEnter_email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="password" id="password">New Password:</label></td>
            <td><input type="password" name="password" class="inputField" /></td>
        </tr>   
        <tr>
            <td class="formLabel"><label for="gender" id="gender" class="formLabel">I am:</label></td>
          <td><select name="gender" class="selectMenu selectMenu1 gender">
              <option value="select">Select Sex:</option>
              <option value="male" name="male">Male</option>
              <option value="female" name="female">Female</option>
                        </select>
          </td>
              </tr>
               <tr>
            <td class="formLabel"><label for="bday">Birthday:</label></td>
               <td>
            <select name="bday_month" class="selectMenu selectMenu1 bday">
              <option value="male">Month:</option>
              <option value="January">January</option>
            </select>
    <select name="bday_day" class="selectMenu bday">
              <option value="Day">Day:</option>
              <option value="1">1</option>
                        </select>
    <select name="bday_year" class="selectMenu bday">
              <option value="Year">Year:</option>
            </select>
         </td>
        </tr>
        <tr>
                  <td class="submitTd" colspan="2"><input type="submit" value="Sign Up" name="submit" class="submit signup" /><td>
        </tr>
        <input type="hidden" name="MM_insert" value="form1" />
        </form>
        </table>
        <!-- end .sidebar1 --></div>
      <div class="content">
        <h1>CSSU</h1>
        <!-- end .content --></div>
      <div class="footer">
        <!-- end .footer --></div>
        </div> <!-- end container2 -->
      <!-- end .container --></div>
    </body>
    </html>
    And here is user_registration.php code just for the first_name field...
    <?php
    $errors = array();
    if ($_POST) {
      // run the validation script
      require_once('library.php');
      try {
              // main script goes here
              $val = new Zend_Validate_Regex('/^[a-z]+[-\'a-z ]+$/i');
              if (!$val->isValid($_POST['first_name'])) {
                $errors['first_name'] = 'Required field, no numbers';
      } catch (Exception $e) {
              echo $e->getMessage();
    And from here, here is the library.php code....
    <?php
    $library = '.../html/zend/library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
    Zend_Loader_Autoloader::getInstance();
      $write = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      $read  = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      // Comment out the next two lines if using mysqli
      // and remove the comments from the last two lines
      $dbWrite = new Zend_Db_Adapter_Pdo_Mysql($write);
      $dbRead = new Zend_Db_Adapter_Pdo_Mysql($read);
      //$dbWrite = new Zend_Db_Adapter_Mysqli($write);
      //$dbRead = new Zend_Db_Adapter_Mysqli($read);
    } catch (Exception $e) {
              echo $e->getMessage();
    I replaced some code here to protect myself, but the library.php file is completely functional and has been tested... I am sure the problem ins't in here.
    Please let me know if you need any further code to help you out. I am brand new to PHP and so far everything has ran smoothly up til now. I have my Zend Framework uploaded to my server and tested that my site is connecting to it properly. Any help on this would be so so awesome! This is for a school project and I can't move on until this is resolved! Thank you so much for trying!
    You can also view the issue at my website... all the files have been uploaded to the server. www.CSSU.com

  • Probs with drop-down text in Word doc

    I'd like to include drop-down text in my printed
    documentation, but I'm having problems making it work. I have lots
    of i-frames in my Webhelp project and, for some reason, they all
    seem to have carriage returns in them. When I turn on the "include
    drop-down text" in my printed doc options, these carriage returns
    wreak havoc on my formatting.
    I've tried removing them from the TrueCode, but they just
    re-generate. I've also thought about writing a macro in Word to
    remove them, but I can't think of a way to ensure it is consisent.
    And, I have numerous long documents that will be generated from
    this project, so it is not feasible to remove them manually.
    I'd really like to use the drop-down text functionality for
    my printed docs. Short of turning of the drop-down text, using
    conditional tags, and duplicating text , I don't know how. Any
    ideas?
    BTW, I'm using RoboHelp X5.

    Based on the information I received from Peter Grainge, I completed the following steps.  The Bulleted-List issue was fixed, but not the numbered-lists.
    1.        Make sure your RoboHelp project is not opened.
    2.        Open up the default.css style sheet for your project in Notepad.
    3.        Search for the following text:
    P.Numbered-List {
       list-style: decimal;
       text-indent: -;
       margin-left: 0pt;
    4.        Replace with the following text:
    /*P.Numbered-List {
       list-style: decimal;
       text-indent: -;
       margin-left: 0pt;
    5.        Search for the following text:
    P.Bulleted-List {
       list-style: disc;
       margin-left: -6pt;
    6.        Replace with the following text:
    /*P.Bulleted-List {
       list-style: disc;
       margin-left: -6pt;
    7.        Open up your RoboHelp Project
    8.        Go to Edit : Find and Replace Files
    9.        Search for:  <li><p class="Bulleted-List">
    10.     Replace with: <li class="Bulleted-List"><p>
    11.     Now do another search and replace.
    12.     Search for: <li><p class="Numbered-List">
    13.     Replace with: <li class="Numbered-List"><p>
    14.     Remove any extra lines that appear at the end of the drop-down text.

  • Export Excel Table in .txt File with space delimited text in UNICODE Format

    Hi all
    I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very good solution is
    given by the converter in Excel "Save As" .prn File. All works fine, the formattation is perfect (it does not matter if some parts are cutted because are too long), but unfortunately the greek letters are converted into "?"!!!
    I've tried to convert my .xlsx File in .txt File with formatting Unicode and the greek letters are still there! But in this case the format is not good, the structure of a table is gone!
    Do you know how to save an Excel file in .prn but with Unicode formatting instead of ANSI or a .txt with space delimited text?
    Thanks a lot to everyone that can help me!
    M.L.C.

    This solution works in Excel/Access 2013.
    Link the Excel table into Access.
    In Access, right-click the linked table in the Navigation Pane, point your mouse cursor to "Export", and then choose "Text File" in the sub-menu.
    Name the file, and then under "Specify export options", check "Export data with formatting and layout".  Click "OK".
    Choose either Unicode or Unicode (UTF-8) encoding.  Click "OK".
    Click "Close" to complete the export operation.

  • How to Create a Auto Generated number with some preceding text in Sharepoint 2010

    I am trying to create a auto generated number field in Sharepoint 2010 list item. My requirement is to have the following format number generated when new request is created in Sharepoint using form. Auto generated Ticket ID should be in the following format
    "IR13000" "IR13001" "IR13002"....... Please let me know how to get this done. I tried to use combination of default ID and Characters but its not working for new requests, its only reflecting for existing uploaded requests. I
    am trying this for taking up Ticket requests by filling up some fields in the form. Any quick help is much appreciated.
    Thanx

    Here are the steps:
    1 - Open your SharePoint site in SP Designer 2010.
    2 - Click Workflows and add a List workflow. Associate this workflow on the list where you want the Random Text to be generated.
    3 - Inside the workflow editor, select the Action "Update list item"
    4 -  Select 'Current Item'.
    5 - Click Add.. and select the field which needs to be updated with the Random Text. Make sure this column is not of type "Calculated" type, otherwise you won't see it in the list of the fields within the workflow.
    6 - Click "..." button in the next textbox which will open String Builder dialog box.
    7 - Type IR and then click 'Add or Change Lookup and select ID column from "Field from source". Hit OK.
    8 - It should look like IR[%Current Item:ID%]
    9 - Hit OK.
    10 - Save and publish the workflow. (Please note that currently this workflow is not set to auto run on creating new items. That's because we want to test it at this point of time).
    11 - Go to your list in SharePoint and create a new item. After creating, select the item and click Workflows and then run this workflow.
    12 - You should be able to see the text "IR1" in the designated column.
    13 - Once you see that it's working, go to SPD and set the workflow to run automatically on creation of the new item. Save and publish and then return to your list in SharePoint.
    14 - Create a new item there and you should see the Random value in the column.
    15 - You will also see the column in the New form. In order to remove it, go to List settings > content types > Item content type > and select Hidden for this column so that it doesn't showup in any form.
    Try it and let me know how it goes.
    Thanks,
    Ashish

  • PDF file shows different numbers of text blocks in CC 2014 and CS6

    Hi,
    I've inherited a file at work that displays different numbers of text blocks, depending on the version of Acrobat used to view the file. Here's the specific issue:
    As viewed in CC 2014:
    "Chapter 1 - Chapter One Title": Appears as two text blocks -- one for "Chapter 1 - " and one for "Chapter One Title"
    As viewed in CS 6:
    "Chapter 1 - Chapter One Title": Appears as a single text block -- "Chapter 1 - Chapter One Title"
    This occurs only with regard to single-digit chapter numbers that are whole numbers. So:
    Chapter 1, Chapter 5, and Chapter 7 entries appear as two blocks in CC 2014, one block in CS6.
    Chapter 2.0, Chapter 6.1, Chapter 10, entries appear in single blocks in both CC 2014 and CS6.
    The PDF file was created -- I believe -- through the save-to-PDF feature in Word 2010.
    Any idea what's happening here?
    Thanks.
    David

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Not a valid SOAP Content-Type: text/html; charset=iso-8859-1

    Friends
    JDEV and SOA suite 10134
    I have multiple domains on my BPEL Server. In one of the domain since I deployed the new process, all the processes of that domain are now failing on execution with following error in opmn/soa_instance/*.err log files. No errors in domain.log
    +"Caused by: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; cha+
    +rset=iso-8859-1"+
    At the same time we get Internal Server Error on BPEL Console.
    I have sync processes with 1 or two invokes, so I am generally losing the instances, cannot provide the details in the process execution. All BPEL processes are invoking Siebel Web Services, that is the common part.
    When I restart my system, it may or may not work; even if it works then within few instances execution again starts giving the same error. I can see that after the errors the instance are going through and getting completed successfully few times. All these processes were working successfully earlier.
    Any idea about this !!!!
    Thanks

    Thanks Anirudh,
    I don't use compensation handlers. Moreover I have properly defined the scopes and sequences throughout the bpel process. My processes are sync in nature and I'm not able say at what step exactly the processes are failing and throwing the SOAP content Type error though the instances are getting completed with delay soemtimes.

  • How do I see the numbers I texted on my verizon?

    I have a prepaid iPhone plan. Im the only number on the account, and the acct owner. I need to see the numbers I texted/ texted me at certain times and when I go to usage the number fields are left blank? Thank you so much for your time and God bless:)

        xoangelheartxo,
    Keeping a tab on numbers you've contacted or numbers that have contacted you is often times very useful. So, we want to make that happen. At your convenience, I'd recommend contacting our prepaid department directly at 888-294-6804. While prepaid won't be able to verbally provide you with your request due to privacy policy, prepaid can definitely come up with a course of action to suit your needs.
    Evan_VZW
    Please follow us on twitter @VZWSupport

  • Internal calculation of the font tracking (text running width)

    Is it true, that in the english version the internal calculation of the font tracking (text running width) in InDesign is hard-coded in inch and could not changed in cm in the options. (I know that I could do this for the rulers)
    So we better should use a german version to avoid Problems with print shops or design agencies in Germany.

    In the past we had problems here in Germany when we use the english version of InDesign. We have some big files, each about 1200 pages and when we share this files with print shops or design agencies which uses the german version they had sometimes problems with the font tracking eg text run out of text boxes and so on. Adobe told us that can happen because the english version works internal with inch and we could not change this. So we start using the german version and all the problems where solved. Now we want to update to the actual version and had an internal discussion if we should order the english or german version.

  • Using Validator with mx:ComboBox causes it to auto-close

    I've recently ported a 3.x flex app to Flex 4. I've run in to a bug that causes all mx:ComboBoxes to close the first time the user attempts to open the drop down list. Subsequent attempts to open the box work fine.
    Example:
    <mx:ComboBox id="typeId" dataProvider="{fMechanismTypes}"
                                 labelField="name" prompt="Select..."
                                 change="handleTypeChange( )"
                                 creationComplete="initTypeValidator();"
                                 focusOut="tabValidationCheck()"/>
    private function initTypeValidator():void {
                fTypeValidator.source = typeId;
                fTypeValidator.property = "selectedIndex";
                fTypeValidator.minValue = 0;
                fTypeValidator.lowerThanMinError = "This field is required.";
    If I don't initialize fTypeValidator, the combobox works correctly.
    Anyone experience this?

    It appears a Flex ComboBox and a String Validator with the properties of being required as true, and the property of text, forces the ComboBox to close when selecting an item via the keyboard.  This auto close only happens when making the initial selection from the initial empty string or 0 index.  After a valid selection has been made, the user is able to use the keyboard to select any other values, and the ComboBox display remains open.  I have attempted to write my own ComboBox class that extends the Flex ComboBox, which would do custom open and close functionality, however I have been unsuccessful.  My goal is to have this ComboBox remain open during Keyboard input.  If the StringValidator required property is set to false, the box does not auto close.
    Any help on this topic would be greatly appreciated.
    And here is a sample of my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"  layout="absolute" minWidth="955" minHeight="600" creationComplete="init();">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]private var _comboBoxDataProvider:ArrayCollection;
                private function init():void {
                    _comboBoxDataProvider = new ArrayCollection();
                    _comboBoxDataProvider.addItemAt('', 0);
                    for(var i:int = 0; i < 6; ++i) {
                        var obj:Object = {};
                        obj.labelField = String(i);
                        _comboBoxDataProvider.addItem(obj);
                    comboBoxValidator.validate();
            ]]>
        </mx:Script>
        <mx:StringValidator id="comboBoxValidator"
            required="true"
            source="{comboBox}" requiredFieldError="Empty Field Error"
            property="text"
            />
        <mx:ComboBox  id="comboBox" width="150"
        dataProvider="{_comboBoxDataProvider}"
        labelField="labelField"
        selectedIndex="0"  />
    </mx:Application>

  • Create Basic Timeline with Numbers

    I haven't found any timeline software that I'm impressed with so far, so I've made it my goal to create a basic timeline with Numbers. My dates are years, not specific days. (It's for an Old Testament class so some examples of my dates are the Edict of Cyrus in 539 BC, Completion of the second temple in 515 BC, Death of King Uziah in 740 BC, etc.)
    I'm using negative numbers for the year. I've plotted the events on a line graph, however I want to have each event labeled accordingly. Does anyone have an idea of how to do this? Thanks!
    ~Rick

    Well, here's what I might do to create such a chart:
    In my table I would have a column (B) that has the years of each event I would want to plot. Next to it, in column C, would be all zeros. I'd put the event names in column D, though this is only for reference, they won't be plotted. I would create a scatter chart from columns B and C.
    In the chart inspector I would set the Y axis Min to be zero, the Max to be 1, no grid lines, not show the Y axis, no title or legend, etc. I would use the default + sign for the data points but I would perhaps make them larger in the Chart Inspector. I would make the data point lines wider in the Graphic Inspector so they show up better.
    For the text, I would create a text box. In the Graphic Inspector I would turn it 90 degrees (vertical). I would copy this box and paste it repeatedly so there are a bunch of them to work with. I'd put event names in each one. Then I'd put them all on the graph above the correct years. You may have to hold down the command key while dragging the text boxes to be able to align each one exactly over a data point.
    That's the basics. You might want to fancy it up a bit more. One thought would be to create a custom format for the X axis so the years display as "500BC" vs "-500". Do this in the table inspector in the Axis tab. Choose Custom and the custom format pane will open. Click on the plus sign and add the condition "if less than zero". Type BC at then end of the #,###. Right click on the #,### and click to remove the separator (the comma). You can change the "positive" dates in a similar fashion so they will have an AD (if you have any positive dates).
    Message was edited by: Badunit

  • How to paste calculated values from Numbers?

    When I copy calculated values from Numbers and paste into a table in Pages, I get an image like the one below.  Non calculated values paste fine.
    To get around this issue, I paste the calculated values into TextWrangler, then copy from there and paste into Pages.  Is there a way to go directly from Numbers to Pages with calculated values?

    Hi 4th Space,
    I you are pasting into a table in Pages, follow Jeffs instructions.
    I you are not pasting into a table, this works. Copy the cells in Numbers. Go to your Pages document and under the Edit Menu > Paste and Match Style. It works like Paste Values.
    Ian.

Maybe you are looking for

  • Hp smart print for officejet 8100 on windows 8.1

    ASKING:  Is HP SMART add on / plug in (for economy of ink / paper)  still available for website printing  with an HP Officejet 8100 on WIndows 8.1??  This restricts printing to "only" a portion of a webpage? Thanks. This question was solved. View Sol

  • Selection Screen - Date and Time

    Hi, I have given a selection screen where the user needs to key in the input in the following format dd.mm.yyyy hh:mm:ss. Reason is that the database fetching these elements accepts only in this criteria. Now as they look into automating this program

  • One PI set up for all the outbound interfaces

    Hello Friends, We have set of interfaces from SAP to 3rd party using PI system. We will not do any mapping for any interface in PI We will receive the IDocs ( Orders , deliveries , shipping and alll ) from SAP  and send it to 3rd party. is there any

  • How to write the code for screen-exits

    halo fellow SAPiens, I want to add a screen for t-code AS01......for which i have created a sub-screen in the function grp (related to AS01)........now i need to link the sub-screen with the Standard SAP prgm..........i.e  call the sub-screen........

  • How to unblock my Ipad? (forgot password 4 numbers)

    When I want to Use my Ipad I first have to unlock with a password (4 numbers), BUT  " I forgot this password" and now it is TOTALLY blocked. How can I unblock it ? I want to use it offcourse ? Please let me know... thank you