Forms don't submit when mixed w/ Javascript

Greetings,
I have a problem with a JSF application
I have a JSF form with a number of text fields (h:inputText) and text areas. None are set to be required and all use the default validators, converters, etc. Each text element is bound to a String property of a backing bean. All works fine under 'normal' conditions. I submit the form, the values are all set on the backing bean, all is well.
Next to one (or more) of the textfields, however, there is a "Select..." button (h:commandButton) with a javascript call on the 'onmousedown' event that launches a new window (this is a slightly modified version of the example found at http://forum.exadel.com/viewtopic.php?t=559 by Sergey Smirnov). The selected value in the popup window is used to set the value on the original form text field. Then the original form can be submitted.
When I use one of these buttons to launch a new window (pop-up) with a JSF-based select list in it, I get unusual behavior. The syptoms I see are:
1. If the popup list itself submits and refreshes (such as in the case of an indexed list, and the user selects a new index) the value is set properly on the 'opener' form, but when I submit the 'opener' form, the value reverts back to its previous (before the pop-up was launched) value.
2. Especially with more than 1 pop-up on a form, I often see the case where I submit the form, and it simply refreshes itself, and all values are cleared from the form elements. My ActionListeners and other action events are never invoked. No messages are sent back to the page via the faces context. I get no notification of what went wrong.
3. The behavior I get is hit or miss, sometimes it works well, other times it never works.
4. Strangely, it seems that if I click more slowly, things tend to work better more often. Rapid clicking seems to make the failure much more likely.
The Button looks like this:
<h:inputText id="itemValue" value="#{item.value}"/>
<h:inputHidden id="itemId" value="#{item.id}"/>
<h:inputHidden id="itemTypeId" value="#{item.typeId}"/>
<h:commandButton id="find" action="showList" value="Select..."
onmousedown="showList(this,'itemValue', 'itemId', 'itemTypeId')"
onclick="return false"/>
The javascript showList() method registers the html components itemValue, itemId, and itemTypeId for callbacks, and launches a window using a pre-defined href value. Inside this window is a JSF page that lists all of the available items as h:commandLink objects. When one of the links is selected, the pop-up window calls a javascript function on the 'opener' window to set the itemValue, itemId, and itemTypeId values according to the selected item.
function showList(action, nameFieldComponent, idFieldComponent, itemTypeIdComponent) {
//url to the chooser.jsp file opened in the new window
var href='<h:outputText value="#{bundle.chooser_javascript_href}" />';
var features='<h:outputText value="#{bundle.chooser_javascript_window_properties}" />';
<...snipped out details for brevity - resolves the form and component ids for callbacks >
//open the new window
winId=window.open(href,'chooserWindow',features);
A javascript function in the chooser.jsp calls back and update() method, which sets the values on the name, id, and typeId form elements. All this works fine.
It's AFTER all this, when I submit the form on the original page, that I get the errors.
I suspect that somehow with more than 1 window open, I've managed to confuse the Faces navigation and view management - does anybody have any insights to help me solve the problem?
Also, how can I better debug what is happening on the server when my action listener is never getting invoked?

This is just a shot in the dark, but have you tried switching to client-side state saving?
When you use server-side state saving, the JSF RI only keeps the state for one view around. If your pop-ups are created by JSF views, popping up one of them detroys the state for the main view on the server, which could cause the effects you describe. Switching to client-side state saving should solve this, because then the view state is held as hidden fields in each form instead, and hence, can't be destroyed.

Similar Messages

  • Texts in pdf form don't appear when viewing in Acrobat nor in Reader.

    Texts in pdf form don't appear when viewing in Acrobat nor in Reader nor when printed after the form has been filled. But the texts appear when one clicks inside the field. What is the solution to be able to print and view all of the texts in all of the fields that have been typed.

    More than likely caused by someone filling out the form with Mac Preview.
    Here's a potential fix: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html

  • Forms don't submit data

    Acrobat 8 Professional on Mac OS X 10.4.11.
    A form I created in Acrobat does not transmit the data in the form fields when e-mailed vie the submit button. The artwork - created in Illustrator - arrives, but the fields are empty.
    This form is intended to be integrated into a web page via inline frame. It works properly but when I click on the submit button and the form opens in Mail, the fields are empty.
    It prints properly, from Acrobat as well as from Safari when integrated into a web page.

    Not initially. But I did after I read your reply. It didn't make a difference, though, and I would have been if it did since I have only Acrobat Professional installed and not the reader. So it's actually Acrobat what's running in the browser window.
    The data doesn't even show when I open the document in Acrobat and select "Attach to E-mail" from the File menu. It's only visible when I open and fill out the form in Acrobat or in the browser.
    Thanks for your reply.

  • How do I redirect the form to my email when I submit?

    How do I redirect the form to my email when I submit?

    Hi,
      You could use the "Email Receipts" or Email Notification" features in Options tab.
    Please check these out and see if this is what you are looking form.
    http://forums.adobe.com/docs/DOC-2664
    You will need to add a email field to your form requesting the form-submitter to enter his/her email so that after the form-submit an email is sent to him/her.
    If this is not what you are referring, please provide more detail and write back
    Thanks,
    Lucia

  • Submit button in distributed form don't work.

    I created a form in LiveCycle Designer.  It has 2 submit buttons, both to the same email address.  They link back to a hidden button to send the email.  The form works undistributed, but when I distribute the form to track respsonses, the buttons no longer function.  Why?

    I'm distributing the form in Acrobat Pro 9.
    I created the form in Live Cycle Designer.  Save, then open in Acrobat pro.  Extend Features to Acrobat Reader, click the drop down box on Forms and hit distribute.  I save a local copy.  When I open the distributed form the buttons do fall silent, the Submit Button on the purple line up top still works, but that doesn't appear in reader and the people who will be completing the form all use reader.  Any suggestions for a fix?
    I'd like to distribute because that automates the tracking.  It works undistributed.

  • Certain web forms have formatting options like those found in Microsoft Word. They don't appear when I use Firefox, but do with IE of course. Is there a way to get it to display?

    Certain web forms have formatting options like those found in Microsoft Word. They don't appear when I use Firefox, but do with IE of course. Is there a way to get it to display?

    That formatting feature for text areas is known as Rich Text editing. Easy to enable on the web page with one line of code to tap into the Midas package that Mozilla uses, but the users can't enable it themselves from within Firefox.
    http://kb.mozillazine.org/Rich_text_editing
    http://kb.mozillazine.org/Midas
    http://www.mozilla.org/editor/midas-spec.html

  • Form doesn't submit [was: Please Help!]

    I am new to web development and am obviously just not seeing what I'm missing. I re-built our company's website in January (mostly because of over-charging by our webmaster). It is an exceptionally basic .html sight but it works for us. I have learned a great deal about coding the basics and have been slowly going back through my orginal pages and cleaning up the code. While I was doing that I noticed that one of the pages our customers use are from our old website. I am trying to create a form that I will be able to manipulate that has the look and feel of our current site. Maybe you can take a look and explain to me why when I fill in all the required fields and hit the "submit" button nothing happens.
    http://http://langsauction.com/Staging/bid_form_test.html
    Our server has a cgi folder that has not been touched or moved so I am guessing I just haven't figured out where to add the code I need for this to work.
    I have checked the code from our old page:
    http://https://langs11.securesites.net/bids/index.php/
    Other than it being a .php I can't see what I missed.....
    When the information is submitted from the "old" page it is stored on our server and I receive an email notification, I click the link in my email and am directed to a printable page with all of our customer's information. I would like the same thing to happen with my new page.
    I really appreciate any help you can give me!
    Christina
    Subject line edited by moderator to indicate nature of problem

    You have been huge help already....I am taking your advise and walking away for this evening.....if you could look into this I would be eternally greatful!!
    <?php
    * Things to NOTE
    * Is it ok to have month values as numbers in this format 01, 02, 03, ... 11... etc..
    require_once 'https://langsauction.com/bids/Crypt_Blowfish-1.0.1/Blowfish.php';
    include('https://langsauction.com/bids/functions.php');
    include('https://langsauction.com/bids/db.php');
    $b = new Crypt_Blowfish('5az1bc1dDa1cv1TVa1wQa12xXx');
    # for new crypt method
    $key = "5az1bc1dDa1cv1TVa1wQa12xXx";
    $error_fields = array();
    $errors = array();
    # passed to function month_display and will print out relevant values
    $***_month = array("01" => "January", "02" => "February", "03" => "March", "04" => "April", "05" => "May", "06" => "June", "07" => "July", "08" => "August", "09" => "September", "10" => "October", "11" => "November", "12" => "December");
    $***_fields = array("last_name" => "Last Name", "first_name" => "First Name", "address1" => "Address 1", "city" => "City", "state" => "State / Province", "zip" => "Zip / Postal Code", "county" => "County", "country" => "Country", "phone" => "Telephone", "email" => "Email", "cc_type" => "Credit Card Type", "cc_name" => "Names As It Appears On Card");
    # keeps track of which fields had errors so
    # it's html row can be highlighted
    $error_fields = array();
    * Credit Card Validation Solution, PHP Edition,
    * Usage Example.
    * @package    CreditCardValidationSolution
    * @author     Daniel Convissor <[email protected]>
    * @copyright  The Analysis and Solutions Company, 2002-2003
    * @version    $Name: rel-5-12 $ $Id: ccvs_example.php,v 1.15 2003/08/06 05:51:57 danielc Exp $
    * @link       http://www.ccvs.info/
    * Require the main file.
    require('../Documents/Langsauction/www/langsauction.com/bids/ccvs.inc.php');
    $Form = new CreditCardValidationSolution;
    * Example of to encrypt and decrypt
    $encrypted = $b->encrypt('test');
    $decrypted = $b->decrypt($encrypted);
    echo " encr - $encrypted - decryp $decrypted";
    #echoÊ"Encrypted:Ê" .Êbin2hex($encrypted)Ê.Ê"\n";
    # existing code
    if (isset($_POST['submit'])) {
        dbConnect('langsa');
    * Need to Still
    * run all fields through POST VARS
    * and sanitize data
    * use reg match from metrochai validation
    # check user has checked Conditions of Sale
    if($_POST['agree'] != 'yes') {
        array_push($errors, '>>Please read and accept the Conditions of Sale by selecting the checkbox');
    foreach ($***_fields as $field => $field_name) {
        if($_POST[$field] == '') {
          array_push($error_fields, $field);
          array_push($errors, '>>The "'. $field_name . '" Field is empty. Please enter information for that field');
    * Check that if a user enters a value in the Lot No. field, that all other fields in that row also have values
    for($x = 1; $x < 16; $x++) {
         if( $_POST['lot' . $x] != '' && ( $_POST['lot_desc' . $x] == '' ||  $_POST['lot_max' . $x] == '' ||  $_POST['lot_max_bid' . $x] == '' ) ) {
          $lot = 'lot' . $x;
          $lot_name = 'Lot No. ' . $_POST['lot' . $x];
          array_push($error_fields, $lot );
          array_push($errors, '>>Please fill in the additional values for  "'. $lot_name . '" in STEP 3');
         * Put the names of the card types you accept in here.
         * To handle all card types, skip this step and put ''
         * in the Accepted argument.
        $Accepted = '';
        $Month = $_POST['exp_dat_mon'];
        $Year  = $_POST['exp_dat_yea'];
        # adding trim to remove any spaces at beginnning or end
        # in order to keep live server from breaking on mysql syntax
        $_POST['cc_num'] = trim($_POST['cc_num']);
    # check if Credit Card Number is empty
    if (empty($_POST['cc_num']) ) {
                # if CC Num is blank along with other relevant fields
                $Form->CCVSNumber = '4002417016240182';
                $Month = '';
                $Year  = '';
                array_push($errors, '>>The "Credit Card Number" Field Is Blank. Please enter information for that field');
    # if Credit Card Number is not empty then check integrity of numbers   
    elseif ( !$Form->validateCreditCard($_POST['cc_num'], 'en', $Accepted, 'Y', $Month, $Year) ) {
             array_push($errors, $Form->CCVSError);
             array_push($error_fields, 'cc_num');                
    $count_errors = count($errors);
    if($count_errors == 0) {
    # form appears to be good so process data
    # encrypt credit card info
    # PEAR Blowfish Object Call
    #$cc_num = $b->encrypt($_POST['cc_num']);
    $cc_num = encrypt($_POST['cc_num'], $key); //encrypts the data using the key
    //echo "$encrypted<hr>";
    #sanitize data
        $email = strip_invalid_chars($_POST[email], 'email');
         $last_name = strip_invalid_chars($_POST[last_name]);
         $first_name = strip_invalid_chars($_POST[first_name]);
         $address1 = strip_invalid_chars($_POST[address1]);
         $address2 = strip_invalid_chars($_POST[address2]);
        $city = strip_invalid_chars($_POST[city]);
        $state = strip_invalid_chars($_POST[state]);
        $zip = strip_invalid_chars($_POST[zip]);
        $county = strip_invalid_chars($_POST[county]);
        $country = strip_invalid_chars($_POST[country]);
        $phone = strip_invalid_chars($_POST[phone], 'insecure');
        $cc_type = strip_invalid_chars($_POST[cc_type]);
        $cc_name = strip_invalid_chars($_POST[cc_name]);
        $exp_dat_yea = strip_invalid_chars($_POST[exp_dat_yea]); 
        $exp_dat_mon = strip_invalid_chars($_POST[exp_dat_mon]);
        $sql = "INSERT INTO cc_form SET
                  last_name= '$last_name',
                  first_name = '$first_name',
                  address1 = '$address1',
                  address2 = '$address2',
                  city = '$city',
                  state = '$state',
                  zip = '$zip',
                  county = '$county',
                  country = '$country',
                   phone = '$phone',
                  email = '$email',
                  cc_type = '$cc_type',
                  cc_num = '$cc_num',
                  exp_dat_mon = '$exp_dat_mon',
                   exp_dat_yea = '$exp_dat_yea',
                  cc_name = '$cc_name',
                  date = NOW()";
              $insert_cc_data = mysql_query($sql) or die(mysql_error()) ;
              # get id for lots table
              # to keep track of each user's lots
              $id = mysql_insert_id();
             * Insert Lots
            foreach ($_POST as $key => $val) {
                # sanitize data in all fields in loops
                if (preg_match("/lot([0-9]+)/", $key,  $matches)) {
                #echo "-- $matches[0]";
                if($_POST['lot'.$matches[1]] != '') {
            $val_lot = strip_invalid_chars($_POST['lot'.$matches[1]]);
            $val_lot_desc = strip_invalid_chars($_POST['lot_desc'.$matches[1]]);
            $val_lot_max = strip_invalid_chars($_POST['lot_max'.$matches[1]]);       
            // looks like strip_invalid_chars with type 'all' was stripping out '.' and perhaps the comma from
            // the javascript that formatted the number eg: 1,204.02
            // will now set type 'insecure' for strip_invalid_chars, which should leave '.' and , commas intact
            // for now will leave the lot_max_bid field as a varchar and have the javascript do the formatting
            // NOTE if the user's browser does not have javascript enabled
            // then currency will not be formatted into the database
            // would need to check entries for a '.' and if not found then use php currency formatting function
            $val_lot_max_bid = strip_invalid_chars($_POST['lot_max_bid'.$matches[1]], 'insecure');
            if(!preg_match("/./", $val_lot_max_bid)) {
                //$val_lot_max_bid = number_format($val_lot_max_bid, 2, '.', ',');
                        #echo $val_lot . "<br />";
                        #echo $val_lot_desc  . "<br />";
                        #echo $val_lot_max . "<br />";
                        #echo $val_lot_max_bid . "<br />";
                    $query_lots = "INSERT
                             INTO
                                    lots
                                    (lot_nu,
                                     lot_desc,
                                     lot_max,
                                     lot_max_bid,
                                     user_id,
                                     date
                                    values(
                                    '" . $val_lot . "',
                                    '" . $val_lot_desc . "',
                                    '" . $val_lot_max . "',
                                    '" . $val_lot_max_bid . "',
                                    '$id',
                                    NOW()
                #v_dump($matches[1]);
                $insert_lots = mysql_query($query_lots) or die(mysql_error());
               } # end of if isset
         * Make Sure Duplicate Entries Don't Occur
         * When User Hits Refresh Here
    ?>
        <html>
      <head>
        <title>Lang's Bids</title> 
    <script type="text/javascript" src="../Documents/Langsauction/www/langsauction.com/bids/site.js"></script>
    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">      
      </head>
    <body>
        <center>
        <table width="750">
            <tr>
                <td valign="center"><img src="https://langs11.securesites.net/bids/images/Bid-Banner.jpg">
                <br />
        <font size="-1" face="Verdana, Arial, Helvetica"><p><ul>Your Absentee Bid Information Was Received. Thank You.</ul></p>
        <p><ul><a href="javascript:window.close()">Close Window</a></ul></p></font>
                   </td>
               </tr>
        </table>
        </center>
        </body>
        </html>
    <?php
       * Send Email
      $today = date("F j, Y, g:i a");
      //$to = "[email protected]";
      //$to = "[email protected]";
      //$to = "[email protected]";
      // current email address to use!
      $to = "[email protected]";
      //$to = "[email protected]";
      $from = "[email protected]";
      $subject = "A Lang's Absentee Bid Has Been Submitted - " .$today. "";
      $message = "A Lang's Absentee Bid Has Been Submitted on " .$today. "\n\n Visit the Admin Area to view this entry:\n\nhttps://langs1.securesites.net/lang_cc/index.php";
      $headers = "From: $from\r\n";
      $send = mail($to, $subject, $message, $headers);
      exit;
    } # end of submit
        ?>
    <html>
      <head>
        <title>Lang's Bids</title>
             <LINK REL="StyleSheet" HREF="../Documents/Langsauction/www/langsauction.com/bids/bids.css" TYPE="text/css">
    <SCRIPT LANGUAGE="JavaScript">
    <!--http://javascript.internet.com/forms/currency-format.html-->
    <!-- Begin
    function formatCurrency(num) {
    num = num.toString().replace(/\$|\,/g,'');
    if(isNaN(num))
    num = "0";
    sign = (num == (num = Math.abs(num)));
    num = Math.floor(num*100+0.50000000001);
    cents = num%100;
    num = Math.floor(num/100).toString();
    if(cents<10)
    cents = "0" + cents;
    for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
    num = num.substring(0,num.length-(4*i+3))+','+
    num.substring(num.length-(4*i+3));
    //return (((sign)?'':'-') + '$' + num + '.' + cents);
    return (((sign)?'':'-') +  num + '.' + cents);
    //  End -->
    </script>
    <style type="text/css">
      .disclaimer {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 14px;
        color: #000;
        margin: 0px;
        padding: 0px;
      .heading {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 30px;
        color: #6A0000;
      .buttons {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 54px;
      .footer {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 16px;
        line-height: 1px;
        font-style: italic;
      .tabletitles {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 14px;
      </style>
      </head>
      <!-- body -->
    <body>
    <form  name=currencyform method="post" action="<?=$_SERVER['../Documents/Langsauction/www/langsauction.com/bids/PHP_SELF']?>#for m_start">
    <center>
    <table width="750" border="0" cellpadding="0" cellspacing="5" class="text">
        <tr>
            <td colspan="2" align="center"><img src="Auction Banner.jpg" width="960" height="255" />
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left">
        <br>
        <center>
        <font face="arial" size="3">
        <span class="heading">Absentee and Phone Bid Form </span><br>
        </font>
        </center>
        <div align="center"><br>
          <span class="disclaimer">IMPORTANT: Please read CONDITIONS OF SALE before filling out form.<br><br>
            <strong>Absentee Bidding:</strong> Please complete this form to absentee bid on any lots (catalog item numbers) in this auction. Absentee bids are executed on your behalf by our staff in competition with bids from other bidders. In the event two identical absentee bids are received, the bid first received will be accepted. In the event your maximum bid ties with a bid from the phone, the normal policy is to go one increment higher on your behalf to break the tie in your favor. If you want us to do so, PLEASE INDICATE +1 ON THE FORM, IF NOT, PLEASE INDICATE MAX. <br><br>
            <strong>Phone Bidding:</strong> If you want to bid on the phone, through a member of Lang’s staff during the auction, please indicate so on this form along with the numbers of the lots you intend to bid on. Be sure to indicate the phone numbers where Lang’s can call you when it’s time for you to bid. We will make every effort to execute all absentee and phone bids. However, if there is an error or omission, Lang’s will not be held liable. <br><br>We require a good faith deposit equal to 20% of the maximum total bid (bank check, money order or VISA/Master Card).
            An 18% buyer’s premium will be added to all successful bids. A 3% discount (resulting in 15%) is given for cash or check payments.
      <br><br>
      <strong>Invoices will be emailed at the close of the auction on Sunday night to the email address provided.</strong><br> Please check your Spam folder or contact Lang’s office if you do not receive your invoice.<br><br>
            ~MAKE CHECKS PAYABLE TO LANG’S ~ Payment is due in full within ten days following the auction.
            Failure to pay within ten days following the auction will jeopardize future absentee & phone bidding privileges.
            </span><br><br>
          <hr width="100%" size="3" />
        </div>
        <p></p>
            </td>
        </tr>
        <tr>
          <td colspan="2">
          <a name="form_start">
            <br />
            <?php
            $error_count = count($errors);
            if($error_count > 0) {
              echo "<font face=\"arial\" color=\"red\" size=\"2\">";
              echo "The Following Errors Occured:<br /><br />";
            #  $errors = $_GET['errors'];
              foreach ($errors as $error_item) {
                  echo "$error_item<br />";
              echo "</font>";
            } # end of if error_count
              ?>     
          </td>
        </tr>
           <tr>
            <td colspan="2"></td></tr>
        <tr <?php if(in_array('first_name', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>First Name     </p>
            </td>
            <td align="left" width="550">
                <input name="first_name" type="text" value="<?=$_POST['first_name']?>"  maxlength="100" size="25" />
                <font color="orangered"><b>*</b></font>
            </td>
        </tr>
        <tr <?php if(in_array('last_name', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left" <?php if(in_array('last_name', $error_fields)) { echo "class=\"signupform\"";}?>>
                <p>Last Name     </p>
            </td>
            <td align="left">
                <input name="last_name" type="text" value="<?=$_POST['last_name']?>" maxlength="100" size="25" />
                <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr>
            <td align="left" <?php if(in_array('address1', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
                <p>Address 1     </p>
            </td>
            <td align="left">
                <input name="address1" type="text" value="<?=$_POST['address1']?>" maxlength="100" size="25" />
                <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr>
            <td align="left">
                <p>Address 2     </p>
            </td>
            <td align="left">
                <input name="address2" type="text" value="<?=$_POST['address2']?>"     maxlength="100" size="25" />
            </td>
        </tr>
        <tr valign="top" <?php if(in_array('city', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>City     </p>
            </td>
            <td align="left">
                 <input name="city" type="text" value="<?=$_POST['city']?>"  maxlength="100" size="25" />
            <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr valign="top" <?php if(in_array('state', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>State / Province     </p>
            </td>
            <td align="left">
      <!--     
    <select name="state" class="text">    
      <option value="<?php echo isset($_POST['state']) ? $_POST['state'] : ""; ?>"><?php echo isset($_POST['state'])  ? $_POST['state'] : "Select State"; ?></option>   
    <?php echo QAstatelist($vars['state']); ?>"
                                        </select>
    -->
            <input name="state" type="text" value="<?=$_POST['state']?>"  maxlength="100" size="25" />
            <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr valign="top" <?php if(in_array('zip', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>Zip / Postal Code     </p>
            </td>
            <td align="left">
                 <input name="zip" type="text" value="<?=$_POST['zip']?>"  maxlength="100" size="25" />
                <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <!-- adding Country -->
         <tr valign="top" <?php if(in_array('country', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>Country     </p>
            </td>
            <td align="left">
                 <input name="country" type="text" value="<?=$_POST['country']?>"  maxlength="100" size="25" />
            <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
         <tr valign="top" <?php if(in_array('phone', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>Telephone     </p>
            </td>
            <td align="left">
                 <input name="phone" type="text" value="<?=$_POST['phone']?>"  maxlength="100" size="25" />
            <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr valign="top" <?php if(in_array('email', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>eMail     </p>
            </td>
            <td align="left">
                 <input name="email" type="text" value="<?=$_POST['email']?>"   maxlength="100" size="25" />
            <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
          <tr valign="top" <?php if(in_array('cc_type', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>Credit Card Type     </p>
            </td>
            <td align="left">
        <select name="cc_type" size="1">
             <option value="<?=$_POST['cc_type']?>"><?php echo isset($_POST['cc_type']) ? $_POST['cc_type'] : "Select Type"; ?></option>   
             <option value="Visa">Visa</option>
             <option value="MasterCard">MasterCard</option>
        </select>
            <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr <?php if(in_array('cc_num', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>Credit Card Number     <br /></p>
            </td>
            <td align="left">
                <input name="cc_num" type="text" value="<?=$_POST['cc_num']?>" maxlength="100" size="25" />
                <font color="orangered" size="+1"><tt><b>*</b></tt><br /><font face="arial" size="1" color="#FF0000"><b>(numbers only, no dashes please)</b></font></font>
            </td>
        </tr>
         <tr <?php if(in_array('exp_dat_mon', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?><?php if(in_array('exp_dat_yea', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>Expiration Date     </p>
            </td>
            <td align="left">
               <select name="exp_dat_mon" size="1">
                 <?php if(!isset($_POST['exp_dat_mon'])) { echo "<option value=\"\">Select Month</option>";}?>
             <?php echo month_display($***_month, $_POST['exp_dat_mon']); ?>"
           </select>
            <select name="exp_dat_yea" size="1">
                 <option value="<?=$_POST['exp_dat_yea']?>"><?=$_POST['exp_dat_yea']?></option>
                 <option value="2008">2008</option>
                 <option value="2009">2009</option>
                 <option value="2010">2010</option>
                 <option value="2011">2011</option>
                 <option value="2012">2012</option>
                 <option value="2013">2013</option>
                 <option value="2014">2014</option>
                 <option value="2015">2015</option>
                 <option value="2016">2016</option>
                 <option value="2017">2017</option>
                 <option value="2018">2018</option>
                 <option value="2019">2019</option>
                 <option value="2020">2020</option>
                 <option value="2021">2021</option>
                 <option value="2022">2022</option>
           </select>
            <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr <?php if(in_array('cc_name', $error_fields)) { echo "bgcolor=\"FFCCCC\"";}?>>
            <td align="left">
                <p>Names As It      <br />
            Appears On Card     </p>
            </td>
            <td align="left">
                <input name="cc_name" type="text" value="<?=$_POST['cc_name']?>"  maxlength="100" size="25" />
                <font color="orangered" size="+1"><tt><b>*</b></tt></font>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            <table width="640">
            <tr><td colspan="4"><hr noshade="noshade" /></td></tr>
            <tr><td colspan="4"><font face="arial" size="3" color="#FF0000">STEP 3</FONT></td></tr>
                           <tr>
                <td align="left" valign="top" class="tabletitles">LOT No.</td>
                <td align="left" valign="top" class="tabletitles">DESCRIPTION</td>
                <td align="left" valign="top" class="tabletitles">MAX, +1 or PHONE</td>
                <td align="left" valign="top" class="tabletitles">BID AMOUNT</td>
                        </tr>
              <?php
              for($x = 1; $x < 16; $x++) {
              ?>
                   <tr>
                <td>
                <input name="lot<?=$x?>" type="text" value="<?=$_POST['lot' . $x]?>"  maxlength="90" size="15" />
                </td>
                <td>
                <input name="lot_desc<?=$x?>" type="text" value="<?=$_POST['lot_desc' . $x]?>" maxlength="100" size="50" />
                </td>
                <td>
                <input name="lot_max<?=$x?>" type="text" value="<?=$_POST['lot_max' . $x]?>" maxlength="90" size="30" />
                </td>
                <td>
                <input type=text name="lot_max_bid<?=$x?>" maxlength="90" size="30" value="<?=$_POST['lot_max_bid' . $x]?>" onBlur="this.value=formatCurrency(this.value);">
        <!-- old input field without javascript currency formatter
                    <input name="lot_max_bid<?=$x?>" type="text" value="<?=$_POST['lot_max_bid' . $x]?>"  />
        -->
                </td>
                </tr>
              <?php
              ?>
            </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
             <p><br /><br /><p>
                 <input type="checkbox" name="agree" value="yes" <?php if($_POST['agree'] == 'yes') { echo "checked";}?>> <b>I have read and accept the <a href="http://langsauction.com/CONDITIONS OF SALE.pdf" target="_blank"><font color="#FF0000">Conditions of Sale (required)</b></a>
             </p>
             <br />
            </td>
        </tr>
        <tr>
            <td align="right" colspan="2">
                <hr noshade="noshade" />
                <input type="reset" value="Reset" />
                <input type="submit" name="submit" value="Submit " />
            </td>
        </tr>
    </table>
    </center>
    </form>
    <br>
    <hr width="100%" size="3" /><br>
    <p align="center" class="footer">Lang's Auction, Inc. &#8226; 663 Pleasant Valley Road &#8226; Waterville, NY 13480 </p>
    <p align="center" class="footer">Phone: 315-841-4623 &#8226; Fax: 315-841-8934 &#8226; <a href="mailto:[email protected]">[email protected]</a></p>
        <br />
        <hr width="75%" size="3" />
        <p align="center" class="footer">     </p>
    <div align="center"><i>&copy; 2012 Lang's Auction, Inc. All rights reserved.</i></div>
        </p>
      <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-17131030-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </body>
    </html>
    <!--- table bottom of main body content -->

  • Radio buttons don't uncheck when another button is checked

    I have this strange problem with my radio buttons. I was taught that when a radio button is checked any other button that is checked becomes unchecked, but that's not what is happening here. This form is part of a php data base; therefore, the value of the name attribute in the form has to correspond with the value of the name attribute in the php file. It appears as long as I keep the default value in the name attribute in the form the buttons will uncheck when another is checked. But I can't keep the default name. Any suggestions? Here is the code.
    <!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>Homework 7</title>
    <script type="text/javascript">
    function edits()
    if(document.getElementById("name").value=="")
        alert("Please enter your whole name.")
        return false;
        if(document.getElementById("jarreau").checked=="")
        alert("Please enter your whole name.")
        return false;
        else if(document.getElementById("aretha").checked=="")
        alert("Please enter your whole name.")
        return false;
        else if(document.getElementById("withers").checked=="")
        alert("Please enter your whole name.")
        return false;
        else if(document.getElementById("joel").checked=="")
        alert("Please enter your whole name.")
        return false;
        else if(document.getElementById("warwidk").checked=="")
        alert("Please enter your whole name.")
        return false;
        if(document.getElementById("rate").value=="")
        alert("Please enter your whole name.")
        return false;
        if(document.getElementById("email").value=="")
        alert("Please enter your whole name.")
        return false;
    else return true;
    </script>
    <style type="text/css">
    body {
        background-color: #F9F;   
    h1 {
        font-size: xx-large;
        color: #FFF;
    </style>
    </head>
    <body>
    <h1 font color="#fff">Old School Concert</h1>
    <table width="87%" border="0" cellspacing="0" cellpadding="2">
      <tr>
        <th align="left" width="19%" scope="col">Al Jarreau</th>
        <th align="left"width="13%" scope="col">Aretha Franklin</th>
        <th align="left"width="16%" scope="col">Bill Withers</th>
        <th align="left"width="19%" scope="col">Billy Joel</th>
        <th align="left"width="19%" scope="col">Dionne Warwick</th>
      </tr>
      <tr>
        <td><img src="al jarreau.jpg" width="247" height="204" alt="Al Jarreau" /></td>
        <td><img src="images/aretha franklin.jpg" width="198" height="204" alt="aretha franklin" /></td>
        <td><img src="Bill Withers.jpg" width="192" height="204" alt="Bill Withers" /></td>
        <td><img src="billy joel.jpg" width="225" height="204" alt="Billy Joel" /></td>
        <td><img src="Dionne Warwick.jpg" width="176" height="204" alt="Dionne Warwick" /></td>
      </tr>
    </table>
    <h2><font color="#FFFFFF">In order to keep bringing you the best in old school legends please fill out this brief survey.</font></h2>
    <form name="service" method="post" action="concert.php" />
    <label for="fname">First name:</label>
      <input name="name" type="text" id="fname" size="20" maxlength="15" />
      (optional)
      <br />
    <label for="lname">Last name:</label>
      <input name="name" type="text" id="lname" size="20" maxlength="15" />
      (optional)<br />
      <label>Which performance you liked best:</label><br />
        <p>
          <label>
            <input type="radio" name="jarreau1_0" value="radio" id="RadioGroup1_0" />
            Al Jarreau</label>
          <br />
          <label>
            <input type="radio" name="aretha1_1" value="radio" id="RadioGroup1_1" />
            Aretha Franklin</label>
          <br />
          <label>
            <input type="radio" name="withers" value="radio" id="RadioGroup1_2" />
            Bill Withers</label>
          <br />
          <label>
            <input type="radio" name="joel" value="radio" id="RadioGroup1_3" />
            Billy Joel</label>
          <br />
          <label>
            <input type="radio" name="warwidk" value="radio" id="RadioGroup1_4" />
            Dionne Warwick</label>
        </p>
    <br />
      <label for="rate">On a scale of 1 to 10 how would you rate this concert?</label>
      <br />
        <input name="rate" type="text" id="rate" size="5" maxlength="2" />
      <label for="email"><br />
        Your email address:</label>
      <br />
    <input name="email" type="text" id="email" size="45" maxlength="45" />
    </p>
    <p>
    <label for="comment">Your comments:</label>
        <textarea name="comment" cols="50" rows="5" id="comment"></textarea>
    </p>
    <input type="button" value="submit" name="" id="" onclick="edits()" />
    </form>
    </body>
    </html>

    You are completely right. Part of my problem is how to ask the question.
    The buttons now uncheck. When I submit the form I'm suppose to get a php
    output that shows all the fields completed. And I also need for Dreamweaver
    to make an alert message if no button is checked?  Is that possible? Or do
    I have to use javascript code for that? So far the form won't submit until
    I clean up javascript if else statements to create an alert box if a button
    is not checked or false. But I don't need an alert message for each button,
    right? Just for the radio group? So that means I have to give the radio
    group a name, right? But I don't see a way to do that so far. Any
    suggestions. Oh, here the link:
    http://ciswebs.smc.edu/cis54/tyson_schweidel/concert.htm

  • Auto submit when ENTER is pressed?

    Although maybe not a 100% JSF question / answer, I thought this still fitted in this forum...
    What is the best way to get a form to submit when the user presses "enter". I guess it can be done with a javascript, or some code on the backing bean, but I am not sure how to connect the event to the code.
    any help / comments are greatly appreciated!!!
    /caj

    I get the source a i've changed what was said in the page.
    The final result is
    * Created on 09.08.2004
    package org.j4j.components;
    import java.io.IOException;
    import javax.faces.component.UIOutput;
    import javax.faces.component.UIForm;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    import javax.faces.component.UIComponent;
    * @author sim
    public class UIDefaultAction extends UIOutput {
         public void encodeBegin(FacesContext context) throws IOException {
              return;
         public void decode(FacesContext context) {
              return;
         public void encodeEnd(FacesContext context) throws IOException {
              ResponseWriter writer = context.getResponseWriter();
              UIComponent actionComponent=super.getParent();
              String acId = actionComponent.getClientId(context);
              UIForm form= getForm(actionComponent);
              if (form != null) {
                   String formId = form.getClientId(context);
                   writer.startElement("script", null);
                   String functionBody = "var keycode; if (evt){ ;} else if (window.event){evt = window.event; } else if (event){ evt = event; } " +
    "else{ return true; } if (evt.charCode){ keycode = evt.charCode; } else if (evt.keyCode){ keycode = evt.keyCode; } " +
    "else if (evt.which){ keycode = evt.which; } else{ keycode = 0; } " +
    "if (keycode == 13){document.getElementById('"+acId+"').click(); return false; } else{return true; }";
                   String functionCode =
                        "document.forms['"+formId+"'].onkeypress ="+
                        "new Function(\"evt\", \""+ functionBody+"\");";
                   writer.write(functionCode);
                   writer.endElement("script");
    private UIForm getForm(UIComponent component) {
    while (component != null) {
    if (component instanceof UIForm) {
    break;
    component = component.getParent();
    return (UIForm) component;
    compile it a put the generated class on the jar (replace it).

  • Acrobat 7 Pro - form won't submit via email, and data won't submit either

    Hi. I am trying to create a form for end users at my website to be able to open the form in Reader, enter their data in the form, and click on the "Submit" button to email it back to me (or any other way it can come back would be okay... as long as I can get the data).
    In doing some research on program software needed to do this, I came to the conclusion I needed to have the Adobe suite (Acrobat Pro 7, Distiller 7, and Designer 7), and so I spent a lot of money obtaining this software. I also have just downloaded Reader 9.0 (the most recent).
    Here are some particulars:
    1. Following directions Ive found on Adobe online, and the Help files as well as in this forum, in the form (in Designer), I have the Submit button going to a URL of mailto:[email protected].
    2. I've saved the form as a Static PDF Form File in Designer. Things are going well.
    3. The form works great in PDF Preview all form fields are setup and act correctly. Super!
    4. I FTP my file to the appropriate website, where once the link to the form is clicked the form opens (in Reader) for my users. Perfect!
    5. The user then opens the form, and before they start to fill it out, a popup shows this:
    Sending Data Fields By Email. Please note: This form contains an email submit button. Clicking this button will email a data file containing data you type into this form. However, the form itself will not be sent. Remember, you cannot save a completed copy of this form with Adobe Reader 9
    Then you have the option to Dont show again and a button to Close.
    6. After clicking Close, the user is then able to fill in the fields. These fields are standard fields, nothing exceptional, nothing fancy, just text.
    7. At the end of the form is the Submit button. When a user clicks this, NOTHING happens. Even when you try to do the File/Send thing, the form will send, but none of the data. Im not so happy right now L
    8. In this forum, I now see directions to Reader Enable in Adobe Pro (I do have Adobe Pro). The directions say Advanced/Enable Reader (as in one of the above posts is stated, 'Advanced > Enable Usage Rights in Adobe Reader'). However, I do not have an Enable Usage Rights in Adobe Reader under my Advanced tab. So, continuing to read in other similar posts, I find others dont have this option either so, one question is, where is it??? ;-)
    9. Now I see what appears to be another piece of Adobe software that I need, that is LiveCycle? I think Im getting in over my head, as I dont understand
    I am new to all this, and am doing my best, but now Im totally confused. All I want to do is have my measly little form open up and have people fill it in and email it back to me so that I can take that data and work with it.
    I run (or am trying to run) a non-profit (i.e., Im paying 100% of the bill) website for local Humane Societies who can facilitate offering online Adoption Applications (this is the form Im trying to make happen). I got the form made, and its fillable its just not being able to be submitted online; and when it DID get submitted (first try or so), it came through with no data, and the .xml file data wouldnt populate.
    Bottom line question: Is this, what Im trying to do, feasible or not? Im just a simple soul trying to help out some animals. Im not a programmer, so if thats what it takes I guess Im gonna have to give up and forget it. I only wanted to help make things easer for folks to adopt a pet.
    Any help by anyone would be totally and gratefully appreciated. Thank you.
    keywords: empty form, form not submitting, can't email form, data not transferring, no data in form, can't submit form, can't submit data

    Hi, and thank you for the reply.
    I've already spent several hundred dollars on getting Adobe Acrobat software, and was hoping there was some work-around on this? What did people do before LiveCycle for instance when they needed to get data from submitted forms via email?
    Please don't misunderstand, but as in my example described above, what can a 3rd party do for me (to enable more 'robust rights') that I can't do myself? I'm trying to figure out if I have the software to do it, paid for the software that is "supposed" to do it, why then I need to pay more money to someone else to make the software do what it's supposed to? I sure don't want to have to pay someone to fix it each time I need to make a change in my form for instance...
    I'm confused I guess - I suppose the purpose of my asking on the forum here was to hopefully gain some know-how as how to go about doing this myself vs. paying someone else to do it for me. I want to learn, but just don't know where to start. Or, maybe the software I have just doesn't do what I believed it was capable of doing?
    Guidance and/or suggestions from all on this point would be very appreciated. Thank you.

  • Do you have to add effects to Logic Pro X loops when mixing a song?

    Hi everyone,
    I have a question that has been puzzling me and I cannot seem to find an answer for! I have searched high and low on the internet and still cannot find the answer and so I would be grateful to everyones help with this issue.
    My question is that you hear so much about the fact that when you are recording and mixing a track that different instruments for example the Bass Drum and the Bass guitar occupy similar frequencies and we are told that this is why you have to add effects to these instruments when mixing but what I want to know is are they talking about just organic instruments like real drums and a real bass guitar that you manually play and record to Logic Pro X`s audio tracks? Or should you treat the Loops exactly the same? And should you also add effects to the Logic Pro X loops when you are mixing those specific tracks?
    For example if I add a Drum Loop or Bass Loop to a project and then start mixing the song should I add any effects for example EQ, Compression to these Loops? And what would be the best effects to add to the Bass and the Drums when mixing to help them stand out in the mix?
    Many thanks.

    Jamiesroom wrote:
    ... when you are recording and mixing a track that different instruments for example the Bass Drum and the Bass guitar occupy similar frequencies and we are told that this is why you have to add effects to these instruments when mixing ...
    Whoever told you that overly generalized rule, please stop listening to that person .
    The way you post your question (and they are good questions) points out a big problem nowadays. There is so much cookie cutter solutions out there like if you have this, then use that, if you want to get this sound, press that button. The problem with that is that you you often have no idea why you are doing that in the first place.
    Let me give you a simple example about gardening (sorry about that). If I grow tomatoes and look up on the internet how often to water them, I can find an answer "water the tomatoes once a week". I might do that and result is that the tomatoes will die. What I didn't take into account is that the advice was given from someone growing tomatoes in Russia, and I live in California where I might need to water them once a day. So, the answer you are looking for is not "how often to water the tomato", instead you have to learn how much water, depending on your climate, the tomato needs"
    Your music is the tomato. So the question is not what button to press (how often to water), but what button needs to be pressed, depending on your specific recordings (your climate).
    If your bass drum and and bass guitar are more further apart frequency wise, then there might be no need to EQ them, it depends
    Nobody should or could tell you what to do, unless he or she sits next to you at the mix and "hears' what is going on and what needs to be done.
    Don't get me wrong, I don't say that there is a lot of great advice and general guidelines out there. The problem is when you apply that blindly without knowing a little bit why that advice is give and how to apply that, or if it applies to your situation at all.
    In addition: The skills and knowledge about the theory is as important as the skills and experience of listening and judging your recording/mix and decide what action to take.You have to learn what to listen to and what you hear. If you don't know how distortion sounds then you miss out on fixing that issue. If you don't know how a pumping compressor sounds, then you miss out on fixing that issue.
    I think you get the idea
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • PDF form with one submit button that prints form and sanves PDF with data with a unique file name

    We have a long medical form that patients can fill out at kiosks as they wait to see a doctor. We want one button so that the patient can print out the form with one click (and finish filling it out by hand if it's not finished already) and the same button click will save the form with a unique file name (using last name, first name, date, and/or email address so that the identity of the person who filled out the form will be readily apparent to anyone who wants to grab the user's responses later). Is Acrobat capable of doing something like this? LiveCycle Designer maybe? And if we continue with the PDF form and add a submit button, is there a way to program the button click to print and to save?
    Thank you in advance of any suggestions that might accomplish this task.

    I am not sure about the print, but it can probably be done -- possibly with a bit of JavaScript. As to the saving of the form, that is not reasonable at a kiosk. You would want the data submitted to a server (particularly with patient data), no e-mail or accessible drive. You can collect the data and put it in a database or import it to the form for printing yourself.

  • Form with HTTP Submit.. Do I need a Guided Procedure ? How to Configure it?

    Hi masters.
    I have a adobe interactive form with HTTP submit, it works when it runs online, but when I save the pdf file, open, fill and submit, the server does not recieve any request.
    I have read a lot of tutoriais but I still haven´t find a specific tutorial from the begin to the end of this process.
    Should I create a Guided Procedure to recieve this form from http submit ? How can I create it ?
    NetWeaver CE

    Regardless of whether this bar is displayed or not, you should be able to access what is in the "Favourites" folder in a few ways.
    Firstly via the Bookmarks link in Safari. This is the first icon directly to the right of the address bar. Pressing this will open your Bookmarks menu. If you see the word Bookmarks in blue select this and it will take you to the main bookmarks page, and the word Bookmarks will appear in black bold text. If you see Bookmarks in black bold text when first clicking Bookmarks you are where you need to be. The first link on here will be Favourites and have a star icon right next to it, click on Favourites and you will see what has been added to your Favourites folder - if anything.  Also there is an Edit button in the bottom right of this screen, if you aren't going where you expected when selecting a URL in here press Edit, press the > arrow to the right of the favourite name, is the URL correct? If not change it, and click DONE on the keyboard - appears where Return key normally shows on the right-hand side.
    If you are opening Safari and have no tabs already open or have already closed pages so none are open you will see icons that represent the contents of your Favourites folder displayed at the top of the page.
    Also with a page loaded if you click in to the URL field then you will see these icons appear again, together with the keyboard at the bottom of the page.
    Hope this helps.
    Steve

  • Dreamweaver Form Won't Submit- Says Error page cannot be displayed

    My dreamweaver form won't submit because it says there is an error. Am I doing something wrong? I don't know much about forms and how they submit but I heard that in order for their to be a confirmation page I have to create a php page? Here's my code. Thanks!
    <!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=iso-8859-1" />
    <title>Rental and Availability Information</title>
    <style type="text/css">
    <!--
    @import url("CSS Styles/ThankYou.css");
    .style18 {font-size: 16px; font-weight: bold; }
    .style21 {color: #FFFFFF}
    .style42 {
    font-size: 16px;
    color: #000000;
    font-family: Garamond;
    a:link {
    color: #000000;
    .style43 {
    font-family: Garamond;
    color: #FFFFFF;
    font-weight: bold;
    .style44 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: large;
    -->
    </style>
    <link href="CSS Styles/ActivBorder.css" rel="stylesheet" type="text/css" />
    <link href="CSS Styles/border.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .style50 {
    font-family: "Goudy Old Style";
    font-weight: bold;
    font-size: 24px;
    color: #FFFFFF;
    .style57 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style58 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; }
    -->
    </style>
    </head>
    <body>
    <form id="form2" name="form2" method="post" action="inquiryreceipt.html">
      <table width="556" border="0" align="center" cellspacing="0" bgcolor="#003366" class="ImageBorder">
        <tr>
          <td colspan="3" valign="top"><div align="center" class="style50"><u>Rental and Availability Information</u></div></td>
        </tr>
        <tr>
          <td width="189"><div align="right" class="style18 style57"><span class="style21">Name:</span></div></td>
          <td colspan="2"><input name="name" type="text" id="name" size="50" maxlength="100" /></td>
        </tr>
        <tr>
          <td><div align="right" class="style18 style57"><span class="style21">Property of Interest: </span></div></td>
          <td colspan="2"><label>
            <select name="property" size="1" id="property">
              <option>Butte Creek</option>
              <option>Casa De Ladrillo</option>
              <option>Collins Island</option>
              <option>The Crosby Estate</option>
              <option>Kailua Beach</option>
              <option>Keefer Ranch</option>
              <option>Koko Head</option>
              <option>Rancho Mirage</option>
              <option>San Diego Luxury High Rise</option>
              <option>Santiago Canyon</option>
              <option>South Lake Tahoe</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <td><div align="right" class="style18 style57"><span class="style21">Dates:</span></div></td>
          <td width="83" align="right" bgcolor="#003366"><div align="right" class="style58">
            <div align="right"><span class="style21">Arrival:</span></div>
          </div></td>
          <td width="270" align="left" bgcolor="#003366" class="FormBorder"><strong>
            <select name="smonth" id="smonth">
              <option>Month</option>
              <option value="January">January</option>
              <option value="February">February</option>
              <option value="March">March</option>
              <option value="April">April</option>
              <option value="May">May</option>
              <option value="June">June</option>
              <option value="July">July</option>
              <option value="August">August</option>
              <option value="Semptember">September</option>
              <option value="Octover">October</option>
              <option value="November">November</option>
              <option value="December">December</option>
            </select>
            <select name="select" id="select">
              <option>Day</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
              <option value="20">20</option>
              <option value="21">21</option>
              <option value="22">22</option>
              <option value="23">23</option>
              <option value="24">24</option>
              <option value="25">25</option>
              <option value="26">26</option>
              <option value="27">27</option>
              <option value="28">28</option>
              <option value="29">29</option>
              <option value="30">30</option>
              <option value="31">31</option>
            </select>
            <strong><strong>
            <select name="select2" id="select2">
              <option>Year</option>
              <option value="2002">2002</option>
              <option value="2003">2003</option>
              <option value="2004">2004</option>
              <option value="2005">2005</option>
              <option value="2006">2006</option>
              <option value="2007">2007</option>
              <option value="2003">2008</option>
            </select>
            </strong></strong>      </strong>       
          <div align="left"></div>      <div align="left"></div></td>
        </tr>
        <tr>
          <td><span class="style57"></span></td>
          <td bgcolor="#003366"><div align="right" class="style58">
            <div align="right"><span class="style21">Departure:</span></div>
          </div></td>
          <td align="left" valign="middle" bgcolor="#003366" class="FormBorder"><strong>
            <select name="smonth" id="smonth">
              <option>Month</option>
              <option value="January">January</option>
              <option value="February">February</option>
              <option value="March">March</option>
              <option value="April">April</option>
              <option value="May">May</option>
              <option value="June">June</option>
              <option value="July">July</option>
              <option value="August">August</option>
              <option value="Semptember">September</option>
              <option value="Octover">October</option>
              <option value="November">November</option>
              <option value="December">December</option>
            </select>
            <select name="sday" id="sday">
              <option>Day</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
              <option value="20">20</option>
              <option value="21">21</option>
              <option value="22">22</option>
              <option value="23">23</option>
              <option value="24">24</option>
              <option value="25">25</option>
              <option value="26">26</option>
              <option value="27">27</option>
              <option value="28">28</option>
              <option value="29">29</option>
              <option value="30">30</option>
              <option value="31">31</option>
            </select>
            <strong> <strong><strong>
            <select name="syear" id="syear">
              <option>Year</option>
              <option value="2002">2002</option>
              <option value="2003">2003</option>
              <option value="2004">2004</option>
              <option value="2005">2005</option>
              <option value="2006">2006</option>
              <option value="2007">2007</option>
              <option value="2003">2008</option>
            </select>
            </strong></strong></strong>      </strong></td>
        </tr>
        <tr>
          <td><div align="right" class="style18 style57"><span class="style21">Email:</span></div></td>
          <td colspan="2"><input name="email" type="text" id="email" size="50" maxlength="50" /></td>
        </tr>
        <tr>
          <td><div align="right" class="style18 style57"><span class="style21">Phone: </span></div></td>
          <td colspan="2"><input name="phone" type="text" id="phone" size="30" maxlength="30" /></td>
        </tr>
        <tr>
          <td height="204" valign="top" bgcolor="#003366"><div align="right" class="style18 style57"><span class="style21">Additional Info: </span></div></td>
          <td colspan="2" bgcolor="#003366"><label>
            <textarea name="info" cols="40" rows="10" id="info"></textarea>
          </label></td>
        </tr>
        <tr bgcolor="#660000" class="FormBorder">
          <td height="33" valign="middle" bgcolor="#003366"><label for="Submit"></label>
              <label for="label3"></label></td>
          <td colspan="2" align="center" valign="middle" bgcolor="#003366"><div align="left">
              <input type="reset" name="Reset" value="Clear" id="Submit" />
              <input type="submit" name="Submit" value="Submit" id="label3" />
          </div></td>
        </tr>
        <tr bgcolor="#660000" class="FormBorder">
          <td height="33" valign="middle" bgcolor="#003366"><div align="left" class="style43"><span class="style29 style44"><strong>&laquo;</strong></span> <a href="Index.html" class="style60"><span class="style61 style21"><u>HOME</u></span></a></div></td>
          <td colspan="2" align="center" valign="middle" bgcolor="#003366"> </td>
        </tr>
      </table>
      <div align="center"><span class="style42">&copy;<strong><a href="Index.html">TheBestSpots.com</a>   Phone: (800) 761-9819 Fax: (949) 851-0450 <a href="mailto:[email protected]"><br />
      [email protected]</a></strong></span>  </div>
    </form>
    </body>
    </html>

    I believe my it guys have php on their server. When I look on the internet
    to try and use the form to test it, I get the error:
    The website cannot display the page
    HTTP 500
    Most likely causes:
    The website is under maintenance.
    The website has a programming error.
    What you can try:
    Refresh the page.
    Go back to the previous page.
    Here's one php code I have linked to one of my documents:
    <!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=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .ThankYou {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    border: thick dotted #660033;
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
    font-weight: bold;
    color: #660033;
    font-style: italic;
    background-color: #FFFFFF;
    .style3 {
    font-size: 18px;
    font-style: italic;
    font-weight: bold;
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #000066;
    .style4 {font-size: 30px}
    a:link {
    color: #000066;
    a:visited {
    color: #000000;
    a:hover {
    color: #000000;
    a:active {
    color: #000000;
    -->
    </style>
    </head>
    <body>
    <div align="center">
      <table width="780" height="150" border="1" class="ThankYou">
        <tr>
          <td valign="middle"><div align="center">
            <p class="style4">Thank You For Submitting Your Comments!</p>
            <p>-The Best Spots<br />
              Luxury Vacation Rentals</p>
          </div></td>
        </tr>
      </table>
      <p align="left"><img src="BOPIcon copy.gif" alt="BirdOfParadise" width="36" height="36" /><span class="style3"><a href="Index.html">TheBestSpots.com </a></span></p>
    </div>
    <p>
      <?php
    $txtToAddr = '[email protected]' ;
       $txtSubj = 'Guest Comment From '. $_POST['fname'] . ' ' .  $_POST['lname'] . ' email '. $_POST['email'] . ' Property' . $_POST['property'] ;
    $txtFromAddr = $_POST['email'];
    $txtBody = $startdate = $_POST['smonth']  .  $_POST['sday'] . $_POST['syear'] . ' ' . $enddate = $_POST['emonth'] . $_POST['eday'] . $_POST['eyear'] . ' ' . $_POST['comments'] ;
       $headers = 'From: '. $txtFromAddr . "\r\n" .
        'Reply-To: ' . $txtFromAddr . "\r\n" .
        'X-Mailer: PHP/' . phpversion();
        // echo " Thank you for you request. You will be contacted within 1 business day."; 
        mail( "$txtToAddr", "$txtSubj", "$txtBody", "$headers");
    ?>
    </p>
    <p> </p>
    <p>  </p>
    </body>
    </html>
    And here's the other php code I have linked to the other:
    <?php
    $FM_VERS = "8.05";      // script version
    /* ex:set ts=4 sw=4 et:
    * FormMail PHP script from Tectite.com.  This script requires PHP 4 or later.
    * Copyright (c) 2001-2008 Root Software and Open Concepts Pty Ltd
    * (ABN 93 003 733 499), Melbourne, Australia.
    * This script is free for all use as described in the "Copying and Use" and
    * "Warranty and Disclaimer" sections below.
    * Visit us at http://www.tectite.com/ for updates and more information.
    *** If you use Tectite FormMail, please support its development and other
    *** freeware products by putting the following link on your website:
    ***  Visit www.tectite.com for free <a href="http://www.tectite.com/">form processing script</a>.
    * Author: Russell Robinson, 2nd October 2001
    * Last Modified: RR 14:07 Wed 15 August 2007
    * QVCS Version: $Revision: 1.4 $
    * Read This First
    * ~~~~~~~~~~~~~~~
    *  This script is very well documented and quite large!  It looks daunting,
    *  but really isn't.
    *  If you have experience with PHP or other scripting languages,
    *  here's what you *need* to read:
    *      - Configuration (TARGET_EMAIL & DEF_ALERT)
    *      - Creating Forms
    *  That's it!  (Alternatively, just read the Quick Start and/or
    *  Quicker Start section below).
    *  Full configuration documentation is here:
    *      http://www.tectite.com/fmdoc/index.php
    * Purpose:
    * ~~~~~~~~
    *  To accept information from an HTML form via HTTP and mail it to recipients.
    * What does this PHP script do?
    * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    *  On your web site, you may have one or more HTML forms that accept
    *  information from people visiting your website.  Your aim is for your
    *  website to email that information to you and/or add it to a database.
    *  FormMail performs those functions.
    * Quick Start
    * ~~~~~~~~~~~
    *  1. Edit this file and set TARGET_EMAIL for your requirements (near
    *      line 235 in this file - replace "yourhost\.com" with your mail server's
    *      name).  We also strongly recommend you set DEF_ALERT (the next
    *      configuration below TARGET_EMAIL).
    *  2. Install this file as formmail.php (or other name ending in .php)
    *     on your web server.
    *  3. Create an HTML form and:
    *      - specify a hidden field called "recipients" with the email address
    *        of the person to receive the form's results.
    *      - in the your form tag set the action attribute to
    *        the formmail.php you uploaded to your web server
    *  Once you have FormMail working, you may be interested in some advanced
    *  usage and features.  We have HOW-TO guides at www.tectite.com which
    *  describe many of the advanced processing you can do with FormMail.
    *      http://www.tectite.com/fmhowto/guides.php
    * Quicker Start
    * ~~~~~~~~~~~~~
    *  Use the FormMail Configuration Wizard here:
    *      http://www.tectite.com/wizards/fmconf.php
    *  By answering a few questions you'll get a configured FormMail and
    *  a sample HTML form ready to upload and use on your server.
    * Features
    * ~~~~~~~~
    *  For a list of features go to: http://www.tectite.com/formmailpage.php
    * Security
    * ~~~~~~~~
    *  Security is the primary concern in accepting data from your website
    *  visitors.
    *  Tectite FormMail has several security features designed into it.  Note,
    *  however, it requires configuration for your particular web site.
    * Configuration
    * ~~~~~~~~~~~~~
    *  To configure this script, go to the section titled "CONFIGURATION"
    *  (after reading the legal stuff below).
    *  There is only one mandatory setting: TARGET_EMAIL
    *  and one strongly recommended setting: DEF_ALERT
    *  Full configuration information is available here:
    *      http://www.tectite.com/fmdoc/index.php
    * Creating Forms
    * ~~~~~~~~~~~~~~
    *  Go to this URL to learn how to write HTML forms for use with
    *  Tectite FormMail: http://www.tectite.com/fmdoc/creating_forms.php
    * Copying and Use
    * ~~~~~~~~~~~~~~~
    *  Tectite FormMail is provided free of charge and may be freely distributed
    *  and used provided that you:
    *      1. keep this header, including copyright and comments,
    *         in place and unmodified; and,
    *      2. do not charge a fee for distributing it, without an agreement
    *         in writing with Root Software allowing you to do so; and,
    *      3. if you modify FormMail before distributing it, you clearly
    *         identify:
    *              a) who you are
    *              b) how to contact you
    *              c) what changes you have made
    *              d) why you have made those changes.
    * Warranty and Disclaimer
    * ~~~~~~~~~~~~~~~~~~~~~~~
    *  Tectite FormMail is provided free-of-charge and with ABSOLUTELY NO WARRANTY.
    *  It has not been verified for use in critical applications, including,
    *  but not limited to, medicine, defense, aircraft, space exploration,
    *  or any other potentially dangerous activity.
    *  By using Tectite FormMail you agree to indemnify Root Software and
    *  Open Concepts Pty Ltd, their agents, employees, directors and
    *  associated companies and businesses from any liability whatsoever.
    * We still care
    * ~~~~~~~~~~~~~
    *  If you find a bug or fault in FormMail, please report it to us.
    *  We will respond to your report and make endeavours to rectify any
    *  faults you've detected as soon as possible.
    *  To contact us please register on our forums at:
    *      http://www.tectite.com/vbforums/
    *  or view our contact information:
    *      http://www.tectite.com/contacts.php
    * Version History
    * ~~~~~~~~~~~~~~~
    *  Near the top of this file, you'll find its version. The version
    *  line looks like this:
    *       $FM_VERS = "N.MM";     /* script version ...
    *  The version history used to be located within this file.  However,
    *  starting with Version 8.00 we've moved it...
    *  You can read the complete version history of FormMail on our
    *  main website here:
    *   http://www.tectite.com/fmdoc/version_history.php
        // Capture the current date and time, for various purposes.
    $lNow = time();
    set_magic_quotes_runtime(0);        // disable this silly setting (usually not enabled)
    ini_set('track_errors',1);          // enable $php_errormsg
    $aAlertInfo = array();
    $aPHPVERSION = array();
    $sLangID = "";                      // the language ID
    $aMessages = array();               // all FormMail messages in the appropriate
                                        // language
    $bUseOldVars = IsOldVersion($aPHPVERSION);
        // seed the random number generate if not version 4.2.0 or later
    if (!IsPHPAtLeast("4.2.0"))
        mt_srand(time());
        // we set references to the appropriate arrays to handle PHP version differences
        // Session vars are selected after we start the session.
    if ($bUseOldVars)
        $aServerVars = &$HTTP_SERVER_VARS;
        $aGetVars = &$HTTP_GET_VARS;
        $aFormVars = &$HTTP_POST_VARS;
        $aFileVars = &$HTTP_POST_FILES;
        $aEnvVars = &$HTTP_ENV_VARS;
    else
        $aServerVars = &$_SERVER;
        $aGetVars = &$_GET;
        $aFormVars = &$_POST;
        $aFileVars = &$_FILES;
        $aEnvVars = &$_ENV;
    $bIsGetMethod = false;
        // If the form submission was using the GET method, switch to the
        // GET vars instead of the POST vars
    if (isset($aServerVars["REQUEST_METHOD"]) && $aServerVars["REQUEST_METHOD"] === "GET")
        $bIsGetMethod = true;
        if ($bUseOldVars)
            $aFormVars = &$HTTP_GET_VARS;
        else
            $aFormVars = &$_GET;
    if (!isset($REAL_DOCUMENT_ROOT))
        SetRealDocumentRoot();
    if (isset($aServerVars['SERVER_PORT']))
        $SCHEME = ($aServerVars['SERVER_PORT'] == 80) ? "http://" : "https://";
    else
        $SCHEME = "";
    if (isset($aServerVars['SERVER_NAME']))
        $SERVER = $aServerVars['SERVER_NAME'];
    else
        $SERVER = "";
    /* CONFIGURATION (do not alter this line in any way!!!)                      */
    * This is the *only* place where you need to modify things to use formmail.php
    * on your particular system.  This section finishes at "END OF CONFIGURATION".
    * Help for all settings can be found on our website:
    *  http://www.tectite.com/fmdoc/index.php
    * Also, above each setting is a direct URL to the help information for the
    * setting.
                /* Help: http://www.tectite.com/fmdoc/email_name.php */
    define("EMAIL_NAME","^[-a-z0-9.]+");    // the '^' is an important security feature!
                /* Help: http://www.tectite.com/fmdoc/target_email.php */
    $TARGET_EMAIL = array(EMAIL_NAME."@thebestspots\.com$");
                /* Help: http://www.tectite.com/fmdoc/def_alert.php */
    define("DEF_ALERT","[email protected]");
                /* Help: http://www.tectite.com/fmdoc/set_real_document_root.php */
    $SET_REAL_DOCUMENT_ROOT = "";       // overrides the value set by SetRealDocumentRoot function
        // override $REAL_DOCUMENT_ROOT from the $SET_REAL_DOCUMENT_ROOT value (if any)
        // Do not alter the following code (next 3 lines)!
    if (isset($SET_REAL_DOCUMENT_ROOT) && $SET_REAL_DOCUMENT_ROOT !== "")
        $REAL_DOCUMENT_ROOT = $SET_REAL_DOCUMENT_ROOT;
                /* Help: http://www.tectite.com/fmdoc/config_check.php */
    $CONFIG_CHECK = array("TARGET_EMAIL");
                /* Help: http://www.tectite.com/fmdoc/at_mangle.php */
    define("AT_MANGLE","5VLNXQL");
                /* Help: http://www.tectite.com/fmdoc/target_urls.php */
    $TARGET_URLS = array();         // default; no URLs allowed
                /* Help: http://www.tectite.com/fmdoc/head_crlf.php */
    define("HEAD_CRLF","\r\n");
                /* Help: http://www.tectite.com/fmdoc/body_lf.php */
    define("BODY_LF","\r\n");       // the new default: use this for CR+LF
    //define("BODY_LF","\n");       // the old default: just LF
                /* Help: http://www.tectite.com/fmdoc/from_user.php */
    $FROM_USER = "";                            // the default - setting not used
                /* Help: http://www.tectite.com/fmdoc/sendmail_f_option.php */
    define("SENDMAIL_F_OPTION",false);
    define("SENDMAIL_F_OPTION_LINE",__LINE__-1);    // don't modify this line!
                /* Help: http://www.tectite.com/fmdoc/fixed_sender.php */
    $FIXED_SENDER = "";
                /* Help: http://www.tectite.com/fmdoc/set_sender_from_email.php */
    define("SET_SENDER_FROM_EMAIL",false);
                /* Help: http://www.tectite.com/fmdoc/ini_set_from.php */
    define("INI_SET_FROM",false);
                /* Help: http://www.tectite.com/fmdoc/logdir.php */
    $LOGDIR = "";                           // directory for log files; empty string to
                                            // disallow log files
                /* Help: http://www.tectite.com/fmdoc/autorespondlog.php */
    $AUTORESPONDLOG = "";           // file name in $LOGDIR for the auto responder
                                    // log; empty string for no auto responder log
                /* Help: http://www.tectite.com/fmdoc/csv_file_settings.php */
    $CSVDIR = "";                       // directory for csv files; empty string to
                                        // disallow csv files
    $CSVSEP = ",";      // comma separator between fields (columns)
    $CSVINTSEP = ";";   // semicolon is the separator for fields (columns)
                        // with multiple values (checkboxes, etc.)
    $CSVQUOTE = '"';    // all fields in the CSV are quoted with this character;
                        // default is double quote.  You can change it to
                        // single quote or leave it empty for no quotes.
    //$CSVQUOTE = "'";  // use this if you want single quotes
    $CSVOPEN = "";      // set to "b" to force line terminations to be
                        // kept as $CSVLINE setting below, regardless of
                        // operating system.  Keep as empty string and
                        // leave $CSVLINE unchanged, to get text file
                        // terminations for your server's operating system.
                        // (Line feed on UNIX, carriage-return line feed on Windows).
    $CSVLINE = "\n";    // line termination for CSV files.  The default is
                        // a single line feed, which may be modified for your
                        // server's operating system.  If you want to change
                        // this value, you *must* set $CSVOPEN = "b".
                /* Help: http://www.tectite.com/fmdoc/templatedir.php */
    $TEMPLATEDIR = "";                  // directory for template files; empty string
                                        // if you don't have any templates
                /* Help: http://www.tectite.com/fmdoc/templateurl.php */
    $TEMPLATEURL = "";                  // default; no template URL
                /* Help: http://www.tectite.com/fmdoc/multiformdir.php */
    $MULTIFORMDIR = "";         // directory for multi-form template files; empty string
                                // if you're not using multi-forms
                /* Help: http://www.tectite.com/fmdoc/multiformurl.php */
    $MULTIFORMURL = "";                 // default; no multi-forms templates URL
                /* Help: http://www.tectite.com/fmdoc/authentication_settings.php */
    $AUTHENTICATE = "";
    //$AUTHENTICATE = "Basic cnVzc2VsbHI6dGVzdA==";        // example
    $AUTH_USER = "";
    $AUTH_PW = "";
                /* Help: http://www.tectite.com/fmdoc/form_ini_file.php */
    $FORM_INI_FILE = "";
                /* Help: http://www.tectite.com/fmdoc/moduledir.php */
    $MODULEDIR = ".";
                /* Help: http://www.tectite.com/fmdoc/fmcompute.php */
    $FMCOMPUTE = "fmcompute.php";
                /* Help: http://www.tectite.com/fmdoc/fmgeoip.php */
    $FMGEOIP = "fmgeoip.php";
                /* Help: http://www.tectite.com/fmdoc/advanced_templates.php */
    define("ADVANCED_TEMPLATES",false);     // set to true for advanced templates
                /* Help: http://www.tectite.com/fmdoc/limited_import.php */
    define("LIMITED_IMPORT",true);      // set to true if your database cannot
                                        // handle escaped quotes or newlines within
                                        // imported data.  Microsoft Access is one
                                        // example.
                /* Help: http://www.tectite.com/fmdoc/valid_env.php */
    $VALID_ENV = array('HTTP_REFERER','REMOTE_HOST','REMOTE_ADDR','REMOTE_USER',
                    'HTTP_USER_AGENT');
                /* Help: http://www.tectite.com/fmdoc/fileuploads.php */
    define("FILEUPLOADS",false);        // set to true to allow file attachments
                /* Help: http://www.tectite.com/fmdoc/max_file_upload_size.php */
    define("MAX_FILE_UPLOAD_SIZE",0);       // default of 0 means that other software
                                            // controls the maximum file upload size
                                            // (FormMail doesn't test the file size)
                /* Help: http://www.tectite.com/fmdoc/file_repository.php */
    $FILE_REPOSITORY = "";
                /* Help: http://www.tectite.com/fmdoc/file_mode.php */
    define("FILE_MODE",0664);     // always precede with 0 to specify octal!
                /* Help: http://www.tectite.com/fmdoc/file_overwrite.php */
    define("FILE_OVERWRITE",true);
                /* Help: http://www.tectite.com/fmdoc/next_num_file.php */
    $NEXT_NUM_FILE = "";
                /* Help: http://www.tectite.com/fmdoc/put_data_in_url.php */
    define("PUT_DATA_IN_URL",true); // set to true to place data in the URL
                                        // for bad_url redirects
                /* Help: http://www.tectite.com/fmdoc/db_see_input.php */
    define("DB_SEE_INPUT",false);       // set to true to just see the input values
                /* Help: http://www.tectite.com/fmdoc/db_see_ini.php */
    define("DB_SEE_INI",false);     // set to true to just see the ini file
                /* Help: http://www.tectite.com/fmdoc/maxstring.php */
    define("MAXSTRING",1024);           // maximum string length for a value
                /* Help: http://www.tectite.com/fmdoc/bshowmesgnumbers.php */
    $bShowMesgNumbers = false;
                /* Help: http://www.tectite.com/fmdoc/filters.php */
                /* Note for Tectite personnel: the upgrade Wizard will merge new values
                 * but be careful of $var usage and quoting in new entries.
    $FILTERS = array("encode"=>"$REAL_DOCUMENT_ROOT/cgi-bin/fmencoder -kpubkey.txt",
                    "null"=>"null",
                    "csv"=>"csv");
                /* Help: http://www.tectite.com/fmdoc/socket_filters.php */
    $SOCKET_FILTERS = array(
                     "httpencode"=>array("site"=>"YourSiteHere",
                        "port"=>80,
                        "path"=>"/cgi-bin/fmencoder",
                        "params"=>array(array("name"=>"key",
                                "file"=>"$REAL_DOCUMENT_ROOT/cgi-bin/pubkey.txt"))),
                     "sslencode"=>array("site"=>"ssl://YourSecureSiteHere",
                        "port"=>443,
                        "path"=>"/cgi-bin/fmencoder",
                        "params"=>array(array("name"=>"key",
                                "file"=>"$REAL_DOCUMENT_ROOT/cgi-bin/pubkey.txt"))),
                /* Help: http://www.tectite.com/fmdoc/filter_attribs.php */
    $FILTER_ATTRIBS = array("encode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
                            "httpencode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
                            "sslencode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
                            "csv"=>"Strips,MIME=text/csv",);
                /* Help: http://www.tectite.com/fmdoc/check_for_new_version.php */
    define("CHECK_FOR_NEW_VERSION",true);
    define("CHECK_DAYS",30);
                /* Help: http://www.tectite.com/fmdoc/scratch_pad.php */
    $SCRATCH_PAD = "";
                /* Help: http://www.tectite.com/fmdoc/cleanup_time.php */
    $CLEANUP_TIME = 60;     // cleanup time in minutes
                /* Help: http://www.tectite.com/fmdoc/cleanup_chance.php */
    $CLEANUP_CHANCE = 20;     // percentage probability that cleanup will be performed
                /* Help: http://www.tectite.com/fmdoc/pear_settings.php */
    $PEAR_SMTP_HOST = "";
    $PEAR_SMTP_PORT = 25;
    $PEAR_SMTP_USER = "";
    $PEAR_SMTP_PWD = "";
                /* Help: http://www.tectite.com/fmdoc/alert_on_user_error.php */
    define("ALERT_ON_USER_ERROR",true);
                /* Help: http://www.tectite.com/fmdoc/enable_attack_detection.php */
    define("ENABLE_ATTACK_DETECTION",true);
                /* Help: http://www.tectite.com/fmdoc/attack_detection_url.php */
    define("ATTACK_DETECTION_URL","");
                /* Help: http://www.tectite.com/fmdoc/alert_on_attack_detection.php */
    define("ALERT_ON_ATTACK_DETECTION",false);
                /* Help: http://www.tectite.com/fmdoc/attack_detection_mime.php */
    define("ATTACK_DETECTION_MIME",true);
                /* Help: http://www.tectite.com/fmdoc/attack_detection_dups.php */
    $ATTACK_DETECTION_DUPS = array("realname","address1","address2","country","zip",
                                    "phone","postcode","state","email");
                /* Help: http://www.tectite.com/fmdoc/attack_detection_specials.php */
    define("ATTACK_DETECTION_SPECIALS",true);
                /* Help: http://www.tectite.com/fmdoc/attack_detection_specials.php */
    $ATTACK_DETECTION_SPECIALS_ONLY_EMAIL = array("derive_fields","required",
                        "mail_options","good_url","bad_url","good_template",
                        "bad_template");
                /* Help: http://www.tectite.com/fmdoc/attack_detection_specials.php */
    $ATTACK_DETECTION_SPECIALS_ANY_EMAIL = array("subject");
                /* Help: http://www.tectite.com/fmdoc/attack_detection_many_urls.php */
    define("ATTACK_DETECTION_MANY_URLS",0);
                /* Help: http://www.tectite.com/fmdoc/attack_detection_many_url_fields.php */
    define("ATTACK_DETECTION_MANY_URL_FIELDS",0);
                /* Help: http://www.tectite.com/fmdoc/attack_detection_url_patterns.php */
    $ATTACK_DETECTION_URL_PATTERNS = array(
                '(^|[^-a-z_.0-9]+)(?<!@)([-a-z0-9]+\.)+(com|org|net|biz|info|name|pro|tel|asia|cat)\b',
                '(^|[^-a-z_.0-9]+)(?<!@)([-a-z0-9]+\.)+(com{0,1}|org|net)\.[a-z][a-z]\b');
                /* Help: http://www.tectite.com/fmdoc/attack_detection_ignore_errors.php */
    define("ATTACK_DETECTION_IGNORE_ERRORS",false);
                /* Help: http://www.tectite.com/fmdoc/geoip_lic.php */
    $GEOIP_LIC = "";        // default - no GeoIP
                /* Help: http://www.tectite.com/fmdoc/zero_is_empty.php */
    define("ZERO_IS_EMPTY",false);
                /* Help: http://www.tectite.com/fmdoc/session_name.php */
    $SESSION_NAME = "";
                /* Help: http://www.tectite.com/fmdoc/hook_dir.php */
    $HOOK_DIR = "";
    /* UPGRADE CONTROL
    ** FILTERS:lt:8.04:merge:The FILTERS configuration has
    ** been modified to include some new standard filters.:
    ** FILTER_ATTRIBS:lt:8.04:no_keep:The FILTER_ATTRIBS configuration has
    ** been modified to include new information about the standard filters.:
    ** ATTACK_DETECTION_URL_PATTERNS:eq:8.02:no_keep:The ATTACK_DETECTION_URL_PATTERNS
    ** configuration has been modified to fix a bug.:
    ** FILTER_ATTRIBS:lt:4.00:no_keep:The FILTER_ATTRIBS configuration has
    ** been modified to include new information about the standard filters.:
    ** SET_REAL_DOCUMENT_ROOT:gt:4.07:copy_from=REAL_DOCUMENT_ROOT:The
    ** REAL_DOCUMENT_ROOT configuration has been renamed to SET_REAL_DOCUMENT_ROOT.:
    ** EMAIL_NAME:lt:6.01:no_keep:The EMAIL_NAME configuration has
    ** been modified to match hyphens ('-') in email addresses.:
    ** ZERO_IS_EMPTY:le:6.01:set_to=true:ZERO_IS_EMPTY has been
    ** set to a value that duplicates previous behaviour.:
    ** END OF CONTROL
    /* END OF CONFIGURATION (do not alter this line in any way!!!)               */
        // the following constants define all FormMail messages
    define('MSG_SCRIPT_VERSION',0);     // This script requires at least PHP version...
    define('MSG_END_VERS_CHK',1);       // If you're happy...
    define('MSG_VERS_CHK',2);           // A later version of FormMail is available...
    define('MSG_CHK_FILE_ERROR',3);     // Unable to create check file...
    define('MSG_UNK_VALUE_SPEC',4);     // derive_fields: unknown value specification...
    define('MSG_INV_VALUE_SPEC',5);     // derive_fields: invalid value specification...
    define('MSG_DERIVED_INVALID',6);    // Some derive_fields specifications...
    define('MSG_INT_FORM_ERROR',7);     // Internal form error...
    define('MSG_OPTIONS_INVALID',8);    // Some mail_options settings...
    define('MSG_PLSWAIT_REDIR',9);      // Please wait while you are redirected...
    define('MSG_IFNOT_REDIR',10);       // If you are not redirected...
    define('MSG_PEAR_OBJ',11);          // Failed to create PEAR Mail object...
    define('MSG_PEAR_ERROR',12);        // PEAR Mail error...
    define('MSG_NO_FOPT_ADDR',13);      // You have specified "SendMailFOption"...
    define('MSG_MORE_INFO',14);         // More information...
    define('MSG_INFO_STOPPED',15);      // Extra alert information suppressed...
    define('MSG_FM_ALERT',16);          // FormMail alert
    define('MSG_FM_ERROR',17);          // FormMail script error
    define('MSG_FM_ERROR_LINE',18);     // The following error occurred...
    define('MSG_USERDATA_STOPPED',19);  // User data suppressed...
    define('MSG_FILTERED',20);          // This alert has been filtered...
    define('MSG_TEMPLATES',21);         // You must set either TEMPLATEDIR or TEMPLATEURL...
    define('MSG_OPEN_TEMPLATE',22);     // Failed to open template...
    define('MSG_ERROR_PROC',23);        // An error occurred while processing...
    define('MSG_ALERT_DONE',24);        // Our staff have been alerted...
    define('MSG_PLS_CONTACT',25);       // Please contact us directly...
    define('MSG_APOLOGY',26);           // We apologize for any inconvenience...
    define('MSG_ABOUT_FORMMAIL',27);    // Your form submission was processed by...
    define('MSG_PREG_FAI

  • Tablular form - delete and submit

    Hello,
    I have a tabular form where i can update some fields and i can delete some rows.
    I display 50 rows at a time and the user want to mark the rows to be deleted and perhaps make some changes on some other rows.
    The problem is that when he click either the submit or the delete button, the canges he has made are gone. So he either has to find the rows ha want to delete again or he has to set the changes he wants again.
    My question is how can I do the update before the delete with the submit button, can i just link the delete procedure to the submit button?

    You will need to find a way to chain both the update and the delete functionality. Other than creating the entire thing yourself, the only thing I could suggest would be to get the delete functionality included as part of the submit by adding the following as the URL Target of the Submit button's definition:
    javascript:confirmDelete(htmldb_delete_message,'MULTI_ROW_DELETE');
    As long as this runs ok, it should then continue on with the normal submit.
    Andy

Maybe you are looking for