Form works but field names don't carry over to email

I created a form and set it up to generate an email
containing the information, which will be transmitted to my client.
Everything works fine, except I can't get the form field names to
carry over to the email. For example, I just get the completed
field info w/o the labels, and I'd like to make it easier for my
client to disseminate the information.
Here's the code:
<form action="
http://fcdesign.net/v-cgi/forms.cgi"
method="get"
enctype="multipart/form-data" name="bwccontact"
id="bwccontact"
onsubmit="MM_validateForm('Name','','R','Street_Address','','R','City','','R','State','', 'R','Zip','','R','Phone','','R','Questions_or_Comments','','R');return
document.MM_returnValue">
<input type=hidden name="print_blank_fields"
value="1">
<table>
<tr>
<th width="197" align="right">
Name: </th>
<td colspan="3">
<input name="Name" type="text" size="30" />
</td>
</tr>
<tr>
<th align="right">
Street Address: </th>
<td colspan="3">
<input type="text" name="Street_Address" size="30" />
</td>
</tr>
<tr>
<th align="right">
City: </th>
<td colspan="3">
<input type="text" name="City" size="30" />
</td>
</tr>
<tr>
<th align="right">
State: </th>
<td width="27">
<input name="State" type="text" size="4" maxlength="2"
/> </td>
<td width="115"> </td>
<td width="131"> </td>
</tr>
<tr>
<th align="right">
Zip: </th>
<td colspan="3">
<input name="Zip" type="text" size="12" maxlength="10"
/> </td>
</tr>
<tr>
<th align="right">
Phone: </th>
<td colspan="3">
<input name="Phone" type="text"
onblur="MM_changeProp('Phone','','value','','INPUT/TEXT')"
value="(xxx) xxx-xxxx" size="30" /> </td>
</tr>
<tr>
<th align="right">
Email: </th>
<td colspan="3">
<input name="Email" type="text" size="30" maxlength="35"
/> </td>
</tr>
<tr>
<th height="40" align="right" valign="top"
nowrap="nowrap">
Questions or Comments: </th>
<td colspan="3">
<textarea name="Questions_or_Comments" cols="40"
rows="5"></textarea> </td>
</tr>
<tr>
<th align="right" nowrap="nowrap"> Preferred Contact:
</th>
<td colspan="3"><input type="radio"
name="Preferred_Contact_Method" value="Phone" checked="checked"
class="checkbox" />
Phone
<input type="radio" name="Preferred_Contact_Method"
value="Email" class="checkbox" />
Email </td>
</tr>
<tr>
<th align="right" nowrap="nowrap">
Best Time to Reach You: </th>
<td colspan="3">
<input name="Best_Time_to_Reach_You" type="text"
value="daytime or evening?" size="30" /> </td>
</tr>
<tr>
<th></th>
<td colspan="3"><input type="submit"
name="Form_Submit" value="Submit Form" />
<input name="Form_Reset" type="reset" value="Reset Form"
/></td>
</tr>
<tr>
<th></th>
<td colspan="3"> </td>
</tr>
</table>
<input type="hidden" name="_vDeckformid" value="567" />
</form>

doh!
I am truly a nincompoop...it was in the utility provided by
my web hosting company...nevermind!!!

Similar Messages

  • Converting HTML Forms to PDF - Field Names

    When I use Adobe 8 to convert and HTML form to PDF all the field names in the resulting PDF have the crazy long names that are jumble of letters and numbers. So I always have to go back through and manually rename every field because I'm using another program to autopopulate the fields with data. Is there any way to get Acrobat to automatically name the fields in the PDF the same as they are named in the form either using the "name" or "id" properties of the HTML fields? I don't understand why this isn't the default behaviour to begin with.

    The reason this is done is due to a fundamental difference between HTML forms and Acrobat forms. In HTML forms, fields with the same name do not necessarily share the same value, whereas in Acrobat forms they do.
    In the conversion process, Acrobat gives each field a unique name, but also sets a field's mapping name to the name the field had in the original HTML form. This is so that if the PDF form is used to submit as "HTML", then the original field names will be used and any server process that is capable of dealing with the HTML form is capable of dealing with the resulting PDF form. So be aware that if you want to use your modified form to submit to a web server using the "HTML" format, the new field names that you set will not be used. What will be used are the hidden mapping names.
    Unfortunately, I don't think there's anything you can do about any of this to make it work like you want.
    George

  • Combing PDF forms with identical field names while retaining unique values.

    I have several PDF files of the same form that has been filled out by multiple users. I need to create a combined file of all the responses for reporting purposes. However, the forms (obviously) all have the same field names, and when I combine them the values of the first form autofill the values of the matched fields on the other forms. I need a way to combine the forms while retaining the unique field values. I thought I could write a js to rename the fields, but that isn't possible.
    *EDIT: The fields need to retain editability because some contain long, scrolling text. Flattening or read-only isn't an option, not that either fixes the above problem.
    Suggestions?

    UPDATE:
    I solved this problem, at least for my own needs. Following try67's advice in a related post, I had to delete the existing fields and create new ones with new names. Given my desired outcome, this meant collecting all of the field properties of the fields (with some variation by field type), storing it, erasing the existing fields, and using that stored information to create new, identical fields (again with some variation by field type). Since I didn't want to retain actions or javascript, this was a perfect solution. I also no longer needed the buttons to function (since I wasn't retaining their javascript), so I made them read-only. I'm listing my working code below, in case anyone else could benefit from some or all of it.
    My question to the community is this: Why doesn't Adobe allow for fields to be renamed via javascript? Is it a security issue? My life would have been a lot easier the last few days if I could simply rename existing fields.
    The following script is used in a Combine Files action via the Action Wizard. The PDF optimizer is also used to strip out or flatten additional items.
    //This script is used to rename all the fields in a document while also removing any javascript or actions associated with those fields. Makes buttons read only without renaming.
    //Function to create a random alphanumeric ID.
    function makeid(n) {
        var text = "";
        var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
        for( var i=1; i <=n; i++ )
            text += possible.charAt(Math.floor(Math.random() * possible.length));
        return text;
    //List variables for collecting arrays of field properties.
    var fieldNum = this.numFields;
    var fieldNameArray = new Array();
    var fieldTypeArray = new Array();
    var pageNumArray = new Array();
    var fieldRectArray = new Array();
    var fieldValueArray = new Array();
    var borderStyleArray = new Array();
    var borderColorArray = new Array();
    var borderThicknessArray = new Array();
    var fillColorArray = new Array();
    var textColorArray = new Array();
    var textFontArray = new Array();
    var textSizeArray = new Array();
    var textAlignmentArray = new Array();
    var textMultilineArray = new Array();
    var checkmarkStyleArray = new Array();
    var radiowidgetNumArray = new Array();
    var radiowidgetRectArray = new Array();
    var radiowidgetPageNumArray = new Array();
    //Get the properties of all the current fields, including widgets.
    for (var i = 0; i < fieldNum; i++) {
        var currentField = this.getNthFieldName(i);
        fieldNameArray[i] = makeid(5);
        fieldTypeArray[i] = this.getField(currentField).type;
        borderStyleArray[i] = this.getField(currentField).borderStyle;
        borderColorArray[i] = this.getField(currentField).strokeColor;
        borderThicknessArray[i] = this.getField(currentField).lineWidth;
        fillColorArray[i] = this.getField(currentField).fillColor;
        textColorArray[i] = this.getField(currentField).textColor;
        textFontArray[i] = this.getField(currentField).textFont;
        textSizeArray[i] = this.getField(currentField).textSize  
        if (this.getField(currentField).type == "text") {
            fieldRectArray[i] = this.getField(currentField).rect;
            pageNumArray[i] = this.getField(currentField).page;
            fieldValueArray[i] = this.getField(currentField).value;
            textAlignmentArray[i] = this.getField(currentField).alignment;
            textMultilineArray[i] = this.getField(currentField).multiline;
        if (this.getField(currentField).type == "checkbox") {
            fieldRectArray[i] = this.getField(currentField).rect;
            pageNumArray[i] = this.getField(currentField).page;
            fieldValueArray[i] = this.getField(currentField).value;
            checkmarkStyleArray[i] = this.getField(currentField).style;
        if (this.getField(currentField).type == "radiobutton") {
            checkmarkStyleArray[i] = this.getField(currentField).style;
            fieldValueArray[i] = this.getField(currentField).value;
            var n = 0;
            while (this.getField(currentField + "." + n) != null) {
                radiowidgetNumArray[n] = this.getField(currentField + "." + n).name;
                n++;
            for (x = 0; x < radiowidgetNumArray.length; x++) {
                radiowidgetRectArray[x] = this.getField(radiowidgetNumArray[x]).rect;
                radiowidgetPageNumArray[x] = this.getField(radiowidgetNumArray[x]).page;
    //Delete all the current fields, except for buttons, which become read-only.
    for (var i = (fieldNum - 1); i > -1; i--) {
        var currentField = this.getNthFieldName(i);
        if (this.getField(currentField).type != "button") {
            this.removeField(currentField);
        } else {
            this.getField(currentField).readonly = true;
    //Using the stored arrays of field properties, generate new, identical fields.
    for (var i = 0; i < fieldNum; i++) {
        if (fieldTypeArray[i] == "text") {
            var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], pageNumArray[i], fieldRectArray[i]);
            newField.value = fieldValueArray[i];
            newField.borderStyle = borderStyleArray[i];
            newField.strokeColor = borderColorArray[i];
            newField.lineWidth = borderThicknessArray[i];
            newField.fillColor = fillColorArray[i];
            newField.textColor = textColorArray[i];
            newField.textFont = textFontArray[i];
            newField.textSize = textSizeArray[i];
            newField.alignment = textAlignmentArray[i];
            newField.multiline = textMultilineArray[i];
            newField.doNotSpellCheck = true;
        if (fieldTypeArray[i] == "checkbox") {
            var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], pageNumArray[i], fieldRectArray[i]); 
            newField.value = fieldValueArray[i];
            newField.borderStyle = borderStyleArray[i];
            newField.strokeColor = borderColorArray[i];
            newField.lineWidth = borderThicknessArray[i];
            newField.fillColor = fillColorArray[i];
            newField.textColor = textColorArray[i];
            newField.textFont = textFontArray[i];
            newField.textSize = textSizeArray[i];
            newField.style = checkmarkStyleArray[i];
            newField.readonly = true;
        if (fieldTypeArray[i] == "radiobutton") {
            for (y = 0; y < radiowidgetNumArray.length; y++) {
                var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], radiowidgetPageNumArray[y], radiowidgetRectArray[y]);
                newField.value = fieldValueArray[i];
                newField.borderStyle = borderStyleArray[i];
                newField.strokeColor = borderColorArray[i];
                newField.lineWidth = borderThicknessArray[i];
                newField.fillColor = fillColorArray[i];
                newField.textColor = textColorArray[i];
                newField.textFont = textFontArray[i];
                newField.textSize = textSizeArray[i];
                newField.style = checkmarkStyleArray[i];
                newField.readonly = true;           
    //End script.

  • Now the form works but data captured is not writing to the database table

    Hi
    I have a form that works but does not move from where it is after the submit button is clicked.
    Please advice

    <?php require_once('Connections/dbAttendance.php'); ?>
    <?php
    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 attendlist (Windowsid, title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['Wid'], "text"),
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['contactno'], "text"),
                           GetSQLValueString($_POST['mobile'], "text"),
                           GetSQLValueString($_POST['jobrole'], "text"),
                           GetSQLValueString($_POST['courses'], "text"),
                           GetSQLValueString($_POST['cpg2'], "text"),
                           GetSQLValueString($_POST['mgrname2'], "text"),
                           GetSQLValueString($_POST['troom'], "text"));
      mysql_select_db($database_attending, $attending);
      $Result1 = mysql_query($insertSQL, $attending) or die(mysql_error());
      $insertGoTo = "ReportbyAll.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_dbAttendance, $dbAttendance);
    $query_rsattendance = "SELECT * FROM attendlist";
    $rsattendance = mysql_query($query_rsattendance, $dbAttendance) or die(mysql_error());
    $row_rsattendance = mysql_fetch_assoc($rsattendance);
    $totalRows_rsattendance = mysql_num_rows($rsattendance);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO attendlist (title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room, Adate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['contactno'], "text"),
                           GetSQLValueString($_POST['mobile'], "text"),
                           GetSQLValueString($_POST['jobrole'], "text"),
                           GetSQLValueString($_POST['courses'], "text"),
                           GetSQLValueString($_POST['cpg2'], "text"),
                           GetSQLValueString($_POST['mgrname2'], "text"),
                           GetSQLValueString($_POST['troom'], "text"),
                           GetSQLValueString($_POST['Adate2'], "date"));
      mysql_select_db($database_attending, $attending);
      $Result1 = mysql_query($insertSQL, $attending) or die(mysql_error());
      $insertGoTo = "Listing.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    } ?>
    <!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>Register</title>
    <style type="text/css">
    body {
              font: 100%/0.8 Verdana, Arial, Helvetica, sans-serif;
              background-color: #4E5869;
              margin: 0;
              padding: 0;
              color: #000;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
              padding: 0;
              margin: 0;
    h1, h2, h3, h4, h5, h6, p {
              margin-top: 0;           /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
              padding-right: 15px;
              padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
              border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
              color:#414958;
              text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
              color: #4E5869;
              text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
              text-decoration: none;
    /* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
    .container {
              width: 80%;
              max-width: 960px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
              min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
              background-color: #FFF;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
    /* ~~the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo~~ */
    .header {
              background-color: #6F7D94;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
              padding: 10px 0;
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
              padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    /* ~~ The footer ~~ */
    .footer {
              padding: 10px 0;
              background-color: #6F7D94;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
              float: right;
              margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
              float: left;
              margin-right: 8px;
    .clearfloat { /* this class can be placed on a or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
              clear:both;
              height:0;
              font-size: 1px;
              line-height: 0px;
    </style>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/yahoo.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/event.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/dom.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/calendar.js'></script>
    <link rel='stylesheet' type='text/css' href='TSScript/TSCalendar/calendar.css' />
    <script language='JavaScript' type='text/javascript' src='TSScript/TSCalendar/TSCalendar.js'></script>
    </head>
    <body>
    <div class="container">
      <div class="header">
      <img src="Cerner At Imperial2.jpg" width="960" height="150" alt="" />
      </div>
      <div class="content">
        <h3>Attendance Register: </h3>
              <p><?php echo "Date  ".date("d/m/Y");?></p>
        <form action="<?php echo $editFormAction;?>" id="form1" name="form1" method="post">
          <table width="780" border="0" cellspacing="10" summary="Cerner@Imperial">
            <tr>
              <td><div align="right">* User ID</div></td>
              <td colspan="2"><span id="sprytextfield1">
                <input name="Wid" type="text" id="Wid" tabindex="1" size="18" maxlength="10" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Title</div></td>
              <td colspan="2"><span id="spryselect1">
                <select name="title" id="title" tabindex="2">
                  <option value="0">Select</option>
                  <option value="Ms">Ms</option>
                  <option value="Mrs">Mrs</option>
                  <option value="Mdm">Mdm</option>
                  <option value="Mr">Mr</option>
                  <option value="Dr">Dr</option>
                  <option value="Professor">Prof</option>
                </select>
    <span class="selectRequiredMsg">    Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* First name</div></td>
              <td colspan="2"><span id="sprytextfield2">
                <input name="firstname" type="text" id="firstname" tabindex="3" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Surname</div></td>
              <td colspan="2"><span id="sprytextfield5">
                <input name="surname" type="text" id="surname" tabindex="4" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Contact/ Bleep</div></td>
              <td colspan="2"><span id="sprytextfield3">
                <input name="contactno" type="text" id="contactno" tabindex="5" size="10" maxlength="6" />
              <span class="textfieldRequiredMsg">a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Mobile (optional)</div></td>
              <td colspan="2"><input name="mobile" type="text" id="mobile" tabindex="6" size="25" maxlength="18" />          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Job role</div></td>
              <td colspan="2"><span id="spryselect2">
                <select name="jobrole" id="jobrole" tabindex="7">
                  <option value="0">Select</option>
                  <option value="Doctor">Doctor</option>
                  <option value="CNS/NP">CNS/NP</option>
                  <option value="Midwife">Midwife</option>
                  <option value="Other Staff">Other Staff</option>
                  <option value="Nurse IP HCA">Nurse IP &amp; HCA</option>
                  <option value="Nurse OP HCA">Nurse OP &amp; HCA</option>
                  <option value="IP Physician Assitant">IP Physician Assistant</option>
                  <option value="OP Phlebotomist">OP Phlebotmist</option>
                  <option value="Pharmacists">Pharmacists</option>
                  <option value="Therapist AHP">Therapist &amp; AHP</option>
                  <option value="Medical Secretary">Medical Secretary</option>
                  <option value="Bed Manager">Bed Manager</option>
                  <option value="Medical Record Staff">Medical Records</option>
                  <option value="Medical Records Manager">Medical Records Mgr</option>
                  <option value="OP Booking Clerk">OP Booking Clerk</option>
                  <option value="OP Receptionist">OP Receptionist</option>
                  <option value="ED Admin">ED Admin</option>
                  <option value="Ward Administrator">Ward Administrator</option>
                  <option value="IP Wait List Clerk/Mgr">IP Wait List Clerk/Mgr</option>
                  <option value="Antenatal Supervisor">Antenatal Supervisor</option>
                  <option value="Clinical Coder">Clinical Coder</option>
                  <option value="Clinical Coding Mgr">Clinical Coding Mgr</option>
                  <option value="Pi Help Desk Backoffice">Pi Help Desk Analyst/Back Office</option>
                </select>
              <span class="selectInvalidMsg">Please select a valid item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Manager's Name</div></td>
              <td colspan="2"><span id="sprytextfield4">
              <input name="mgrname2" type="text" id="mgrname2" tabindex="8" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right"></div></td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Course</div></td>
              <td colspan="2"><span id="spryselect3">
                <select name="courses" id="courses" tabindex="10" title="course">
                  <option value="0">Select</option>
                  <option value="Doctors">Doctors</option>
                  <option value="Nurse IP">Nurse IP</option>
                  <option value="Nurse OP">Nurse OP</option>
                  <option value="Midwife">Midwife</option>
                  <option value="HCA">HCA</option>
                  <option value="Pharmacist">Pharmacist</option>
                  <option value="Back Office Staff">Back Office Staff</option>
                  <option value="AHP">AHP</option>
                  <option value="Pi Help Desk Analyst">Pi Help Desk Analyst</option>
                  <option value="Medical Secretary">Medical Secretary</option>
                  <option value="OP Phlebotmist">OP Phlebotmist</option>
                  <option value="Champion Users Doctors">Champion Users Doctors</option>
                  <option value="Champion Users Nurse IP">Champion Users Nurse IP</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Training Location </div></td>
              <td><span id="spryselect4">
                <select name="troom" id="troom"  tabindex="11" title="location">
                  <option value="0">Select</option>
                  <option value="CXH">Charing Cross</option>
                  <option value="HH">Hammersmith Hammersmith</option>
                  <option value="QEH">Queen Charlottee Hospital</option>
                  <option value="SMH">St Mary's Hospital</option>
                  <option value="WEH">Western Eye Hospital</option>
                  <option value="SCC">St Charles Community</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* CPG</div></td>
              <td><span id="spryselect5">
                <select name="cpg2"  id="cpg2"  tabindex="12" title="cpg">
                  <option value="0">Select</option>
                  <option value="CPG 1 Medicine">CPG1 - Medicine</option>
                  <option value="CPG 2 Surgery &amp; Cancer">CPG2 - Surgery and Cancer</option>
                  <option value="CPG3 Specialist Services">CPG3 - Specialist Services</option>
                  <option value="CPG4 Circulatory Services and Renal Medicine">CPG4 - Circulatory Services and Renal Medicine</option>
                  <option value="CPG5 Womens and Childrens">CPG5 - Womens and Childrens</option>
                  <option value="CPG6 Clinical and Investigative Sciences">CPG6 - Clinical and Investigative Sciences</option>
                  <option value="CP7 Private Patients">CPG7 - Private Patients</option>
                  <option value="Others">Others</option>
                </select>
              <span class="selectRequiredMsg">Please select an item.</span></span></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td><input type="submit" name="submitbt" id="submitbt" value="Submit" /></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="center">* Mandatory Fields</div></td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
          </table>
          <input type="hidden" name="MM_insert" value="form1" />
        </form>
        <p> </p>
        <p> </p>
      <div class="footer">
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {validateOn:["blur", "change"]});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur", "change"]});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur", "change"]});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer", {validateOn:["blur", "change"]});
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {invalidValue:"-1", isRequired:false, validateOn:["blur", "change"]});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {validateOn:["blur", "change"]});
    var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3");
    var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4");
    var spryselect5 = new Spry.Widget.ValidationSelect("spryselect5", {validateOn:["blur", "change"]});
    </script>
    </div>
    </div>
    <p>
        <a href="http://validator.w3.org/check?uri=referer"><img
          src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
      </p>
      <P></P>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($rsattendance);
    ?>

  • Dynamic form... field names and values...

    Boy-Howdy. I wish I had the opportunity to stop by this forum and hang out at a time when I am not having issue, but, alas... I appreciate the brain power of the great minds that populate this forum.
    I have an issue: I think I am close on this but cannot identify where my syntax is going awry. Here is a simplified edition of my situation.
    I have a form with a set of dropdown menus that filter a recordset. The group of drop downs are dynamic from a database and will vary depending on what category of products a visitor is viewing.
    If I browse to FRUIT: I get three options that let me filter for:
    Fruit Type
    - Apples
    - Bananas
    - Pears
    Fruit Grown By:
    - Organic
    - Any
    Fruit From:
    - Domestic
    - South America
    - European
    However, if I browse to LUMBER I get:
    Wood Type:
    - Pine
    - Walnut
    - Oak
    Wood Prep:
    - Pre Cut
    - RAW Timber
    Wood Origin:
    - North America
    - South America
    - Europe
    I have the variable naming and database values worked out. My only issue is when I browse to friuit and select apples I want apples to remain selected as I page through results.
    So, the dropdown field names are dynamic. Currently set to zgen1, zgen2, zgen3. I set a variable named sr and increment it to build the progressive 1,2,3 after the field name zgen.
    <cfparam name="sr" default="1">
    <cfoutput group="ft_id" query="oompa2">
    <strong>#f_ftrname#:</strong><br>
    <select name="zgen#variables.sr#">
    <OPTION value="">select...</OPTION>
    <cfoutput>
    <OPTION value="#ft_id#_#fs_id#">#ft_options#</OPTION>
    </cfoutput>
    </select>
    <br><br>
    <cfset sr=#sr# + 1>
    </cfoutput>
    But when zgen1 has a value (in this case "Apples") I can't figure out how to dynamically test for the presence of a value for each dropdown. I have dynamically created the field names (cfset xvalue="FORM.zgen#variables.sr#") to test against. However this creates a value of FORM.zgen1, FORM.zgen2, FORM.zgen3 as it loops when I want it to be Apples, Organic, Domestic.
    Example:
    The code:
    <OPTION value="#ft_id#_#fs_id#"<cfif xvalue IS "#ft_id#_#fs_id#"> SELECTED</cfif>>#ft_options#</OPTION>
    which is translating to:
    <OPTION value="15_5"<cfif FORM.zgen1 IS "15_5"> SELECTED</cfif>>Apples</OPTION>
    When I want it to be:
    <OPTION value="15_5"<cfif 15_5 IS "15_5"> SELECTED</cfif>>Apples</OPTION>
    I hope I am making sense. I would greatly appreciate it if someone could help me noodle this. I have a feeling it is not as complicated as my mind is trying to make it. Thoughts?

    Three selects related type code was not the way to go - because I need each filter to be independent. I created a custom tag that argues the state for each separately up to ten filters.

  • Code to equate table value to work area field name

    Hello Experts,
    How to match a certain value fetched from table to the internal table field.
    For instance: transparent table has a column containing values as
    AMOUNT
    QUANTITY
    there is another work area structure associated with different internal table consisting of amount and quantity fields.
    Now depending on whether the record from transparent table has fetched AMOUNT or QUANTITY, i have to read either the amount or quantity value from the work area.
    Can any one please suggest a technique to do it?
    Thanks,
    Pankaj

    Hi
    Try This:
    suppose you have zitab table as trans. Table and another table itab1 with work area wa.
    First you need to select values from Zitab to an internal table say itab.
    sort itab by <field name>
    loop at itab.
    read table itab1 into wa with key quantity = itab-quantity
                                      amount = itab-amount.
    endloop.
    This will read table itab1 where quantity and amount from itab table matches.
    hope this will work for you.
    thanks
    Lalit Gupta

  • My home network *works* but have I done it correctly?

    Hi,
    Below is my set-up. It works, but I'm worried that I should have done it differently to get maximum performance with my hardware. I'd really appreciate someone glancing over it and letting me know whether it seems okay.
    Cable internet connected wired to modem provided by ISP.
    Ethernet cable to Airport Extreme (the new one)
    Intel iMac Core 2 Duo (N enabled by disc included with Airport Extreme) connecting wirelessly:
    -- Radio Mode: 802.11n (802.11b/g compatible)
    -- Wireless Security: WPA/WPA2 Personal
    Airport Express (just used for Airtunes, and nothing else)
    -- Wireless Mode: Join a wireless network
    Is the Airport express slowing down my network? I want N speeds (just because I can) and don't need to worry about connecting any other devices (apart from the Airport Express) to the network.
    Any suggestions much appreciated.
    Steve.

    I plan on getting an
    iPhone anyway, when they are released in the UK, so I
    guess I'm going to have to run a g compatible
    network...
    Getting an iPhone is of course compulsory Steve
    Check out some posts regarding running a hybrid g/n network using a spread of channels...
    Might be fun (and not expensive)
    Cheerz
    PowerMac G5 2.5 - PB 12" 1.5   Mac OS X (10.4.8)   SE30, IIsi

  • Dynamic Work Area Field name Assignment.

    hi Guru,
      data: it_SFLIGHT type TABLE OF SFLIGHT,
              wa_SFLIGHT TYPE SFLIGHT,
              lv_field TYPE string.
      lv_field =     'CARRID'.   " Field name
        wa_SFLIGHT-<lv_field> = 'vivek'.  " Assigning Value to workarea.
    When i try this i am getting the error.
    Regards.
    Vivekananthan.S

    Hi,
    assign (p_tc_name) to <tc>.
    TYPES:
      BEGIN OF st_mytable,
        name1 TYPE string,
        name2 TYPE string,
        age TYPE i,
      END OF st_mytable.
    DATA:
      gi_mytable TYPE STANDARD TABLE OF st_mytable,
      g_mytable  TYPE st_mytable.
    * Define field symbols
    FIELD-SYMBOLS:
      <myfield1> TYPE ANY,
      <myfield2> TYPE ANY,
      <myfield3> TYPE ANY,
      <myline>  TYPE ANY.
    * Fill table with data
    g_mytable-name1 = 'John'.
    g_mytable-name2 = 'Johnson'.
    g_mytable-age   = 25.
    APPEND g_mytable TO gi_mytable.
    g_mytable-name1 = 'Claudio'.
    g_mytable-name2 = 'Jensen'.
    g_mytable-age   =  45.
    APPEND g_mytable TO gi_mytable.
    * The normal way to do it
    LOOP AT gi_mytable INTO g_mytable.
      WRITE: / g_mytable-name1, g_mytable-name2 ,g_mytable-age.
    ENDLOOP.
    SKIP 2.
    * Do it with field symbols
    LOOP AT gi_mytable ASSIGNING <myline>.
      ASSIGN COMPONENT 1 OF STRUCTURE <myline> TO <myfield1>.
      ASSIGN COMPONENT 2 OF STRUCTURE <myline> TO <myfield2>.
      ASSIGN component 3 OF STRUCTURE <myline> TO <myfield3>.
      WRITE: / <myfield1>,<myfield2>,<myfield3>.
    ENDLOOP.
    * Unassign field symbols
    UNASSIGN <myfield1>.
    UNASSIGN <myfield2>.
    UNASSIGN <myfield3>.
    UNASSIGN <myline>.
    Regards,
    Prabhudas

  • Homepage works, but linked pages don't

    I have created a webpage using iWeb'09 following the video instructions. The welcome page works, but the links from added pages are not working after I have uploaded it to MobileMe. It works in iWeb. Is there anyone who can tell me what the problem might be and how I can correct it?
    Thanks a lot.

    Hi thanks for Helling me. It is written in the bottem of my question. Wait to get help, thanks

  • Video adjustments don't carry over into iDVD 08

    I have been attempting to move my iMovie 08 projects over to iDVD via Share>Media Browser, and this works, but the brightness/contrast/saturation adjustments that I've made in my iMovie Project do not show up when I import the movie via the Media Browser into iDVD. Instead, what I get is the original video settings, which are too dark. Everything else carries over, including cuts that I've made in the project window, but not the video appearance adjustments.
    Why won't iDVD accept the iMovie video adjustments?

    Update: I tried "sharing" my project to iTunes in mp4 format. That worked fine. The brightness adjustments were there, the movie looked good in iTunes. However, when I dragged it into iDVD and played it back, it was dark again!!! Further, I tried exporting the project to Quicktime, and even in the Quicktime viewer it had reverted to the too dark original! I really don't understand this. Why can't I make brightness adjustments in iMovie that will stick, and be useful in iDVD?

  • HT5312 When I made my Itunes account, I didn't type in a rescue email address. Now my computer is saying that I have to type in the answers to my security questions, but I can't remember them. But, since I don't have a rescue email, I can't find out the a

    When I made my Itunes account, I didn't type in a rescue email address. Now, whenever I try to buy music, it says that "since this is the first time buying music on this computer, you must enter the answers to your security questions". But, first, I've always bought music on this computer. Second, I can't remember the answers to my security questions. But I can't reset them, because I don't have a rescue email address. What do I do?

    Welcome to the Apple Community.
    Start here (change country if necessary) and navigate to 'Password and Security', reset your security questions using the link provided, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help, you don't receive a reset email or you don't have a rescue address, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • AD Process Form - Renaming the field name not happening

    Hi Experts,
    I have changed the label name of "AD Server" to "Active Directory (AD) Resource" in the process form (UD_ADUSER) by creating a new version. But still the process form displays the old label name "AD Server". Its not displaying the new label name.
    Can u assist me?
    Thanks & Regards
    INIYA

    You need to use the Form Version Control utility. Then switch all the user's to the new one. You can also provide what the default value should be for the field. The documentation should provide you the details.
    Or you can use SQL and update all the users to the correct IT Resource, but remember it will be a long value.
    --Kevin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Swing Form = JNI = Delphi DLL = Delphi Form works but small issue

    Hi all
    I'm trying to call a delphi dll from a java form.
    This is the procedure
    swing button action => jni => call procedure in delphi dll => create delphi formThis works for me but the problem is when click the button it create the delphi form by calling the dll but it's stucked for ever(frame not the whole form). Never return to do something else. Means that it's stay remain in clicked postion.
    I do not know whether the problem exist with the swings' single threaded behavior. I have used another thread to call natives. But the problem persist.
    So can any one suggest any answer.
    Wish U all HAPPY NEW YEAR!
    Here is the compact code
    native calls
    public class LoadLib
        public native void createForm();
        public native void forward();
        static
            System.loadLibrary("testjni");
    }calling class
    import javax.swing.*;
    import java.awt.event.ActionEvent;
    import java.awt.Container;
    import java.awt.event.ActionListener;
    public class RUNClient extends JFrame {
         JFrame frame = new JFrame();
         JFrame frame2 = new JFrame();
         LoadLib lib = new LoadLib();
         JButton b1 = new JButton("OK");
         JButton b2 = new JButton("Forwad");
         private RUNClient() {
              frame.setLayout(null);
              frame.add(b1);
              frame.add(b2);
              b1.setBounds(110, 80, 80, 20);
              b2.setBounds(110, 50, 80, 20);
              b1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        lib.createForm();     // create form in dll
                        // after this call frame is stucked
              b2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        lib.forward();          // call another native to do some in created form
                        // this cannot be called because frame is stuck
              // other frame operation
         public static void main(String args[]) {
              new RUNClient();
    }delphi code
    library testjni;
    uses
      JNI,Unit1;
      var
      f : TForm1;
    procedure Java_LoadLib_createForm(PEnv: PJNIEnv; Obj: JObject); {$IFDEF WIN32} stdcall; {$ENDIF} {$IFDEF LINUX} cdecl; {$ENDIF}
    begin
    try
      f := TForm1.Create(nil);
      f.ShowModal;    
       finally
         f.Free;
         f.Release;
       end;
    end;
    procedure Java_LoadLib_forward(PEnv: PJNIEnv; Obj: JObject); {$IFDEF WIN32} stdcall; {$ENDIF} {$IFDEF LINUX} cdecl; {$ENDIF}
    begin
    Form1.Top := Form1.Top - 50;
    end;
    exports
      Java_LoadLib_createForm,
      Java_LoadLib_forward;
    begin
    end.

    Hi deshan,
    To realize the problem you should know principles of Java GUI (SWING or AWT) implementation in JVM:
    1) Java GUI is implemented in a single thread with EventQueue static object, which is created with JVM when Java Application GUI starts.
    2) Any painting or event calls are done on this thread (the same approach was used by Microsoft in .NET GUI).
    3) While your code handles an event EventQueue waits for return from your event method. Some calls to GUI components can stick the whole Java GUI (this is the problem of SUN Java architecture, I did not have this in Microsoft Java). To avoid this problem you should use InvokeLater method that works like PostMessage to the main thread in Windows Application. InvokeLater generate an event that is posted to EventQueue and your code passed to InvokeLater method will be executed asynchronously in GUI Thread.
    4) If you call any Java (SWING or AWT) component from the thread other than EventQueue thread you must synchronize these calls with locks by the object got from getTreeLock() method of the component you call. But you should be accurate with locks because they can cause deadlocks.
    Your code does not return from Click Event where you try to create some GUI component but EventQueue is still waiting for “return” and the main GUI thread is suspended.

  • Merge pdf's forms, change text field name and Acrobat x pro closes automatically

    I merged 20 pdfs in one interactive pdf, but when I try to change the name of the text fields (in orden to make the interactive independent from the other fields) the program close automatically. I tried to change the name of the text fields in each pdf before merge and it's the same problem. what can i do?

    I merged 20 pdfs in one interactive pdf, but when I try to change the name of the text fields (in orden to make the interactive independent from the other fields) the program close automatically. I tried to change the name of the text fields in each pdf before merge and it's the same problem. what can i do?

  • I've got a PHP form working, but need to add "autoRespond", anyone know?

    i've developed a working PHP5 file to submit the form to the
    webmaster (info@). Now, the client wants me to add on a custom
    autoResponder. basically, the user fills out the form, the user
    gets an e-mail saying thank you in the subject line and body copy,
    says it came from info@ website.
    Here's the PHP script that's linked to it:

    I take the simple (though not free) way:
    www.bebosoft.com/formstogo/
    domerdel wrote:
    > i've developed a working PHP5 file to submit the form to
    the
    > webmaster (info@). Now, the client wants me to add on a
    custom
    > autoResponder. basically, the user fills out the form,
    the user gets
    > an e-mail saying thank you in the subject line and body
    copy, says it
    > came from info@ website.
    >
    > Here's the PHP script that's linked to it:
    >
    >
    >
    > <?
    > error_reporting(1);
    > if ( $_POST['tpl'] == "mail_req.tpl" )
    > $mailto = Array("[email protected]");
    > else
    > $mailto = Array("[email protected]","[email protected]");
    >
    > $subject="Celibre Web Inquiry: {$_POST['name']}";
    >
    > if ( $_POST['tpl'] == "mail_req.tpl" ) {
    > $t_data=file_get_contents("mail_req.tpl");
    > $subject="Req Cert Inquiry from Website";
    > }
    > elseif ( $_POST['tpl'] )
    > $t_data=file_get_contents("mail_contact.tpl");
    > else
    > $t_data = file_get_contents("mail_template.tpl");
    > foreach($_POST as $key=>$value)
    > $t_data=str_replace("[".$key."]",$value,$t_data);
    >
    > if ( $_POST['companyname'] )
    > $fromname=$_POST['companyname'];
    > elseif ( $_POST['name'] )
    > $fromname = $_POST['name'];
    > else
    > $fromname = $_POST['firstName'] . " " .
    $_POST['lastName'];
    >
    > $headers = "MIME-Version: 1.0\n".
    > "Content-type: text/html; charset=iso-8859-1\n".
    > "From: \"Website.com\" <[email protected]>\n".
    > "Date: ".date("r")."\n";
    >
    > foreach($mailto as $value) {
    >
    mail($value,$subject,$t_data,str_replace("[to]",$value,$headers));
    > }
    >
    > header("location: thank_you.html");

Maybe you are looking for

  • How close can i get to a "Windows only" box

    hi all, i am considering my options for purchasing new mac hardware and i am trying to wrap my head around my new configuration. i am trying to simplify so any help from the gurus would be really welcome. i may want to buy a new high end MBP laptop a

  • Query on Materialized view and materialized view log

    I am creating a materialized view something like this.but getting following error: ERROR at line 1: ORA-12032: cannot use rowid column from materialized view log on "SCOTT"."EMP" SQL> create snapshot log on scott.emp; Materialized view log created. S

  • Proxies just and getting error No implementing class

    Below are the steps I am seeing of a once functioning proxy any help will be greatly appreciated When I send a test message from runtime workbench, it shows up in sxmb_moni as a green flag, clicking in the message I see the following error <Trace lev

  • Tried to download latest version of iTunes but...

    Thought I was updating my 8.something but I now have 9.02 0n my desktop and still have 8.something as operating itunes. It downloaded to an icon on my desktop. I tried to install from there but still have 8.something in there. Restarted countless tim

  • Unable to load batch loader(UCM) in a standalone mode.

    Hi I have installed webcenter content 11g, and I am able to open administration application through admin applet. However I am unable to start "BATCH LOADER" from UCM installed directory(i.e., in the path bin/BatchLoader). When i double click "BatchL