12 Replies Latest reply: Aug 30, 2012 7:20 AM by Cree119 RSS

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

    Cree119 Community Member

      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

        • 1. Re: Form doesn't submit [was: Please Help!]
          MurraySummers CommunityMVP

          The form tag is -

           

          <form id="absenteebids" name="absenteebids" method="post" action="cgi-bin/email.pl">

           

          so it's submitting the data to this file in the cgi-bin folder.  What happens next is a function of what's in that perl file (email.pl).  Can we see its contents?

          • 2. Re: Form doesn't submit [was: Please Help!]
            Cree119 Community Member

            I took that code from a suggestion in my web developers book, I was just hoping it would work....

             

            My cgi bin has sub folders of "sc", "ss" and "ssinstall", I have no idea which one I should point to and what will happend. I have checked the code from our "old" form and can't find a reference to the cgi folder so I don't know how that form worked?

            • 3. Re: Form doesn't submit [was: Please Help!]
              MurraySummers CommunityMVP

              There may not be a mail.pl file on your site.  What's in your old php file that the form was submitting to? Can I assume that you can still use PHP on your new site?

              • 4. Re: Form doesn't submit [was: Please Help!]
                Cree119 Community Member

                My new sight does not use .php, it is just .html. I cannot see where this form is submitting to....

                 

                https://langs11.securesites.net/bids/index.php/

                 

                I have looked through this code and can't find anything that shows me where it goes to when our customers hit the "submit" button.

                • 5. Re: Form doesn't submit [was: Please Help!]
                  MurraySummers CommunityMVP

                  The form tag directs where the form is submitted via the value of the action attribute -

                   

                  <form  name=currencyform method="post" action="/bids/index.php/#form_start">

                   

                  In your case, the form is sending the form data to the page carrying the form (i.e., itself - index.php which is a php page.  The PHP script that then processes the form's submitted data is at the top of this page, probably, and can only be seen when you open the page in DW.  Do you see a large block of PHP scripting at the top of the page, or somewhere within the page?

                  • 6. Re: Form doesn't submit [was: Please Help!]
                    Cree119 Community Member

                    New issue! I dedided instead of trying to figure our which files I do and don't have and how they interact, that I would download the current form into Dreamweaver and redesign it. The new issue is that when I re-upload it to the server I the page does not show up and I get an error message:

                     

                    Warning:  main(../Documents/Langsauction/www/langsauction.com/bids/Crypt_Blowfish-1.0.1/Blowfish.ph p) [function.main]: failed to open stream: No such file or directory in /home/langs/www/langsauction.com/bids/newindex.php on line 8

                     

                    Fatal error:  main() [function.require]: Failed opening required '../Documents/Langsauction/www/langsauction.com/bids/Crypt_Blowfish-1.0.1/Blowfish.php'  (include_path='/home/langs/www/langs11.securesites.net/langsauction/include') in /home/langs/www/langsauction.com/bids/newindex.php on line 8

                     

                    I touched none of the function coding, only switched out text and moved items around.....what is am I doing wrong?!?

                     

                    https://langs11.securesites.net/bids/newindex.php/

                     

                     

                     

                     



                    • 7. Re: Form doesn't submit [was: Please Help!]
                      MurraySummers CommunityMVP

                      I touched none of the function coding, only switched out text and moved items around.....what is am I doing wrong?!?

                       

                      The answer is undoubtedly in your PHP.  You should step away from the keyboard, after you post your page's code here. Trying to debug a page that someone is changing is like trying to nail jelly to the wall.

                      • 8. Re: Form doesn't submit [was: Please Help!]
                        Cree119 Community Member

                        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 <danielc@AnalysisAndSolutions.com>

                        * @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 = "tim@cdmusicpage.com";

                          //$to = "jdykens@c-interactive.net";

                          //$to = "jdykens@maine.rr.com";

                         

                          // current email address to use!

                          $to = "Christina@langsauction.com";

                         

                          //$to = "LangsAuction@aol.com";

                          $from = "Christina@langsauction.com";

                          $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:Sales@LangsAuction.com">Sales@LangsAuction.com</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 -->

                        • 9. Re: Form doesn't submit [was: Please Help!]
                          MurraySummers CommunityMVP

                          As a start, try changing this -

                           

                          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');

                           

                          to this -

                           

                          require_once($_SERVER['DOCUMENT_ROOT'] . '/bids/Crypt_Blowfish-1.0.1/Blowfish.php');

                          include($_SERVER['DOCUMENT_ROOT'] .'/bids/functions.php');

                          include($_SERVER['DOCUMENT_ROOT'] .'/bids/db.php');

                           

                          Now see what happens.

                          • 10. Re: Form doesn't submit [was: Please Help!]
                            Cree119 Community Member

                            Much better! It is showing up now....I've been trying to test it by filling out the form and hitting "submit", however I am getting an error message:

                            The following errors occured

                            the en language file can't be found

                             

                             

                            https://langsauction.com/bids/newindex.phphttp://

                             

                             

                             

                            Sorry to be such a re-occuring pain!

                            • 11. Re: Form doesn't submit [was: Please Help!]
                              MurraySummers CommunityMVP

                              What is the exact error message you are getting now?  Is there a line number and filename given?

                              • 12. Re: Form doesn't submit [was: Please Help!]
                                Cree119 Community Member

                                That is the exact message:

                                 

                                The following errors occured

                                The en language file can't be found

                                 

                                But it does hightlight the credit card field where you enter in the credit card numbers. I went through the coding on the credit card lines, it looks right to me....