Form works in internet explorer and not in firefox
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Form works in internet explorer and not in firefox

  1. #1
    Join Date
    Mar 2010
    Posts
    1

    Form works in internet explorer and not in firefox

    i have a form that i cannot get to submit in firefox that works perfectly in explorer. It is a .php form that has validation. when submitted in firefox all i get is what appears to be random text instead of list of validation errors. Check it out on ItExists.net. the script is as follows:

    PHP Code:
    <div id="form">
                <
    div id="form_tp">
                    <!-- --></
    div>
                <
    div id="formcontent">
                    <
    h2>Fill in your details to get your</h2>
                    <
    h1>REPORT FAST</h1>
                    <
    form action="form.php" method="post">
                        <
    table>
                            <
    tr>
                                <
    td colspan="2" class="style1"><strong>Tell us about 
                                the car you need checked out
    </strong></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">VIN<span class="style8">*</span>:</td>
                                <
    td class="style1"><input type="text" name="vin" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Year<span class="style8">*</span>:</td>
                                <
    td class="style1"><input type="text" name="year" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2" style="height: 27px">Make<span class="style8">*</span>:</td>
                                <
    td class="style1" style="height: 27px">
                                <
    select class="tableIt" name="make" style="width: 139px">
                                <
    option value="ACURA" selected="">ACURA</option>
                                <
    option value="ALFA ROMEO">ALFA ROMEO</option>
                                <
    option value="AM GENERAL">AM GENERAL</option>
                                <
    option value="AMERICAN (AMC)">AMERICAN (AMC)
                                </
    option>
                                <
    option value="ASTON MARTIN">ASTON MARTIN</option>
                                <
    option value="AUDI">AUDI</option>
                                <
    option value="AVANTI II">AVANTI II</option>
                                <
    option value="B M W">B M W</option>
                                <
    option value="BENTLEY">BENTLEY</option>
                                <
    option value="BERTONE">BERTONE</option>
                                <
    option value="BUICK">BUICK</option>
                                <
    option value="CADILLAC">CADILLAC</option>
                                <
    option value="CHEVROLET">CHEVROLET</option>
                                <
    option value="CHRYSLER">CHRYSLER</option>
                                <
    option value="DAEWOO">DAEWOO</option>
                                <
    option value="DAIHATSU">DAIHATSU</option>
                                <
    option value="DATSUN">DATSUN</option>
                                <
    option value="DATSUN/NISSAN">DATSUN/NISSAN</option>
                                <
    option value="DELOREAN">DELOREAN</option>
                                <
    option value="DODGE">DODGE</option>
                                <
    option value="EAGLE">EAGLE</option>
                                <
    option value="EXCALIBUR">EXCALIBUR</option>
                                <
    option value="FERRARI">FERRARI</option>
                                <
    option value="FIAT">FIAT</option>
                                <
    option value="FORD">FORD</option>
                                <
    option value="GEO">GEO</option>
                                <
    option value="GMC">GMC</option>
                                <
    option value="HARLEY DAVIDSON">HARLEY DAVIDSON
                                
    </option>
                                <
    option value="HARLEY DAVIDSON/BUELL">HARLEY 
                                DAVIDSON
    /BUELL</option>
                                <
    option value="HONDA">HONDA</option>
                                <
    option value="HYUNDAI">HYUNDAI</option>
                                <
    option value="INFINITI">INFINITI</option>
                                <
    option value="ISUZU">ISUZU</option>
                                <
    option value="JAGUAR">JAGUAR</option>
                                <
    option value="JEEP">JEEP</option>
                                <
    option value="KIA">KIA</option>
                                <
    option value="LAFORZA">LAFORZA</option>
                                <
    option value="LAMBORGHINI">LAMBORGHINI</option>
                                <
    option value="LAND ROVER">LAND ROVER</option>
                                <
    option value="LEXUS">LEXUS</option>
                                <
    option value="LINCOLN">LINCOLN</option>
                                <
    option value="LOTUS">LOTUS</option>
                                <
    option value="MASERATI">MASERATI</option>
                                <
    option value="MAZDA">MAZDA</option>
                                <
    option value="MERCEDES-BENZ">MERCEDES-BENZ</option>
                                <
    option value="MERCURY">MERCURY</option>
                                <
    option value="MERKUR">MERKUR</option>
                                <
    option value="MINI">MINI</option>
                                <
    option value="MITSUBISHI">MITSUBISHI</option>
                                <
    option value="NISSAN">NISSAN</option>
                                <
    option value="OLDSMOBILE">OLDSMOBILE</option>
                                <
    option value="PANOZ">PANOZ</option>
                                <
    option value="PEUGEOT">PEUGEOT</option>
                                <
    option value="PLYMOUTH">PLYMOUTH</option>
                                <
    option value="PONTIAC">PONTIAC</option>
                                <
    option value="PORSCHE">PORSCHE</option>
                                <
    option value="RENAULT">RENAULT</option>
                                <
    option value="ROLLS-ROYCE">ROLLS-ROYCE</option>
                                <
    option value="SAAB">SAAB</option>
                                <
    option value="SATURN">SATURN</option>
                                <
    option value="STERLING">STERLING</option>
                                <
    option value="SUBARU">SUBARU</option>
                                <
    option value="SUZUKI">SUZUKI</option>
                                <
    option value="TOYOTA">TOYOTA</option>
                                <
    option value="TRIUMPH">TRIUMPH</option>
                                <
    option value="TVR">TVR</option>
                                <
    option value="VOLKSWAGEN">VOLKSWAGEN</option>
                                <
    option value="VOLVO">VOLVO</option>
                                <
    option value="YUGO">YUGO</option>
                                </
    select>
                                <
    font face="Verdana, Arial, Helvetica, sans-serif" size="2">
                                &
    nbsp;</font></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2" style="height: 24px">Model<span class="style8">*</span>:</td>
                                <
    td class="style1" style="height: 24px">
                                <
    input type="text" name="model" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Color<span class="style8">*</span>:</td>
                                <
    td class="style1">
                                <
    input type="text" name="color" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td colspan="2" class="style1">&nbsp;</td>
                            </
    tr>
                            <
    tr>
                                <
    td colspan="2" class="style1"><strong>Tell us about 
                                you
    </strong></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">First Name<span class="style8">*</span>:</td>
                                <
    td class="style1">
                                <
    input type="text" name="fname" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Last Name<span class="style8">*</span>:</td>
                                <
    td class="style1">
                                <
    input type="text" name="lname" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Address<span class="style8">*</span>:</td>
                                <
    td class="style1">
                                <
    input type="text" name="address" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Address line 2:</td>
                                <
    td class="style1">
                                <
    input type="text" name="address2" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">City<span class="style8">*</span>:</td>
                                <
    td class="style1"><input type="text" name="city" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2" style="height: 27px">State<span class="style8">*</span>:</td>
                                <
    td class="style1" style="height: 27px">
                                <
    select class="tableIt" name="customer_state" style="width: 139px">
                                <
    option selected="" value="">State...</option>
                                <
    option value="">-- UNITED STATES --</option>
                                <
    option value="Alabama">Alabama</option>
                                <
    option value="Alaska">Alaska</option>
                                <
    option value="Arizona">Arizona</option>
                                <
    option value="Arkansas">Arkansas</option>
                                <
    option value="California">California</option>
                                <
    option value="Colorado">Colorado</option>
                                <
    option value="Connecticut">Connecticut</option>
                                <
    option value="Delaware">Delaware</option>
                                <
    option value="Florida">Florida</option>
                                <
    option value="Georgia">Georgia</option>
                                <
    option value="Hawaii">Hawaii</option>
                                <
    option value="Idaho">Idaho</option>
                                <
    option value="Illinois">Illinois</option>
                                <
    option value="Indiana">Indiana</option>
                                <
    option value="Iowa">Iowa</option>
                                <
    option value="Kansas">Kansas</option>
                                <
    option value="Kentucky">Kentucky</option>
                                <
    option value="Louisiana">Louisiana</option>
                                <
    option value="Maine">Maine</option>
                                <
    option value="Maryland">Maryland</option>
                                <
    option value="Massachusetts">Massachusetts</option>
                                <
    option value="Michigan">Michigan</option>
                                <
    option value="Minnesota">Minnesota</option>
                                <
    option value="Mississippi">Mississippi</option>
                                <
    option value="Missouri">Missouri</option>
                                <
    option value="Montana">Montana</option>
                                <
    option value="Nebraska">Nebraska</option>
                                <
    option value="Nevada">Nevada</option>
                                <
    option value="New Hampshire">New Hampshire</option>
                                <
    option value="New Jersey">New Jersey</option>
                                <
    option value="New Mexico">New Mexico</option>
                                <
    option value="New York">New York</option>
                                <
    option value="North Carolina">North Carolina
                                
    </option>
                                <
    option value="North Dakota">North Dakota</option>
                                <
    option value="Ohio">Ohio</option>
                                <
    option value="Oklahoma">Oklahoma</option>
                                <
    option value="Oregon">Oregon</option>
                                <
    option value="Pennsylvania">Pennsylvania</option>
                                <
    option value="Rhode Island">Rhode Island</option>
                                <
    option value="South Carolina">South Carolina
                                
    </option>
                                <
    option value="South Dakota">South Dakota</option>
                                <
    option value="Tennessee">Tennessee</option>
                                <
    option value="Texas">Texas</option>
                                <
    option value="Utah">Utah</option>
                                <
    option value="Vermont">Vermont</option>
                                <
    option value="Virginia">Virginia</option>
                                <
    option value="Washington">Washington</option>
                                <
    option value="West Virginia">West Virginia</option>
                                <
    option value="Wisconsin">Wisconsin</option>
                                <
    option value="Wyoming">Wyoming</option>
                                <
    option value="">-- CANADA --</option>
                                <
    option value="Alberta">Alberta</option>
                                <
    option value="British Columbia">British Columbia
                                
    </option>
                                <
    option value="Manitoba">Manitoba</option>
                                <
    option value="New Brunswick">New Brunswick</option>
                                <
    option value="Newfoundland and Labrador">
                                
    Newfoundland and Labrador</option>
                                <
    option value="Northwest Territories">Northwest 
                                Territories
    </option>
                                <
    option value="Nova Scotia">Nova Scotia</option>
                                <
    option value="Nunavut">Nunavut</option>
                                <
    option value="Ontario">Ontario</option>
                                <
    option value="Prince Edward Island">Prince Edward 
                                Island
    </option>
                                <
    option value="Quebec">Quebec</option>
                                <
    option value="Saskatchewan">Saskatchewan</option>
                                <
    option value="Yukon Territory">Yukon Territory
                                
    </option>
                                <
    option value="">-- AUSTRALIA --</option>
                                <
    option value="Australian Capital Territory">
                                
    Australian Capital Territory</option>
                                <
    option value="New South Wales">New South Wales
                                
    </option>
                                <
    option value="Northern Territory">Northern 
                                Territory
    </option>
                                <
    option value="Queensland">Queensland</option>
                                <
    option value="South Australia">South Australia
                                
    </option>
                                <
    option value="Tasmania">Tasmania</option>
                                <
    option value="Victoria">Victoria</option>
                                <
    option value="Western Australia">Western Australia
                                
    </option>
                                </
    select> </td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Zip Code<span class="style8">*</span>:</td>
                                <
    td class="style1"><input type="text" name="zip" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Main Phone #<span class="style8"> 
                                
    *</span>:</td>
                                <
    td class="style1">
                                <
    input type="text" name="phone" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Mobile:</td>
                                <
    td class="style1">
                                <
    input type="text" name="mobile" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Work:</td>
                                <
    td class="style1"><input type="text" name="work" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Email<span class="style8">*</span>:</td>
                                <
    td class="style1">
                                <
    input type="text" name="email" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td colspan="2" class="style1">&nbsp;</td>
                            </
    tr>
                            <
    tr>
                                <
    td colspan="2" class="style1"><strong>Location of 
                                the vehicle you need inspected
    </strong></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Address of car's location<span class="style8">*</span>:</td>
                                <td class="style1">
                                <input type="text" name="car_address" /></td>
                            </tr>
                            <tr>
                                <td class="style2">Address line 2:</td>
                                <td class="style1">
                                <input type="text" name="car_adress2" /></td>
                            </tr>
                            <tr>
                                <td class="style2">City<span class="style8">*</span>:</td>
                                <td class="style1">
                                <input type="text" name="car_city" /></td>
                            </tr>
                            <tr>
                                <td class="style2" style="height: 27px">State<span class="style8">*</span>:</td>
                                <td class="style1" style="height: 27px">
                                <select class="tableIt" name="car_location_state" style="width: 139px">
                                <option selected="" value="">State...</option>
                                <option value="">-- UNITED STATES --</option>
                                <option value="Alabama">Alabama</option>
                                <option value="Alaska">Alaska</option>
                                <option value="Arizona">Arizona</option>
                                <option value="Arkansas">Arkansas</option>
                                <option value="California">California</option>
                                <option value="Colorado">Colorado</option>
                                <option value="Connecticut">Connecticut</option>
                                <option value="Delaware">Delaware</option>
                                <option value="Florida">Florida</option>
                                <option value="Georgia">Georgia</option>
                                <option value="Hawaii">Hawaii</option>
                                <option value="Idaho">Idaho</option>
                                <option value="Illinois">Illinois</option>
                                <option value="Indiana">Indiana</option>
                                <option value="Iowa">Iowa</option>
                                <option value="Kansas">Kansas</option>
                                <option value="Kentucky">Kentucky</option>
                                <option value="Louisiana">Louisiana</option>
                                <option value="Maine">Maine</option>
                                <option value="Maryland">Maryland</option>
                                <option value="Massachusetts">Massachusetts</option>
                                <option value="Michigan">Michigan</option>
                                <option value="Minnesota">Minnesota</option>
                                <option value="Mississippi">Mississippi</option>
                                <option value="Missouri">Missouri</option>
                                <option value="Montana">Montana</option>
                                <option value="Nebraska">Nebraska</option>
                                <option value="Nevada">Nevada</option>
                                <option value="New Hampshire">New Hampshire</option>
                                <option value="New Jersey">New Jersey</option>
                                <option value="New Mexico">New Mexico</option>
                                <option value="New York">New York</option>
                                <option value="North Carolina">North Carolina
                                </option>
                                <option value="North Dakota">North Dakota</option>
                                <option value="Ohio">Ohio</option>
                                <option value="Oklahoma">Oklahoma</option>
                                <option value="Oregon">Oregon</option>
                                <option value="Pennsylvania">Pennsylvania</option>
                                <option value="Rhode Island">Rhode Island</option>
                                <option value="South Carolina">South Carolina
                                </option>
                                <option value="South Dakota">South Dakota</option>
                                <option value="Tennessee">Tennessee</option>
                                <option value="Texas">Texas</option>
                                <option value="Utah">Utah</option>
                                <option value="Vermont">Vermont</option>
                                <option value="Virginia">Virginia</option>
                                <option value="Washington">Washington</option>
                                <option value="West Virginia">West Virginia</option>
                                <option value="Wisconsin">Wisconsin</option>
                                <option value="Wyoming">Wyoming</option>
                                <option value="">-- CANADA --</option>
                                <option value="Alberta">Alberta</option>
                                <option value="British Columbia">British Columbia
                                </option>
                                <option value="Manitoba">Manitoba</option>
                                <option value="New Brunswick">New Brunswick</option>
                                <option value="Newfoundland and Labrador">
                                Newfoundland and Labrador</option>
                                <option value="Northwest Territories">Northwest 
                                Territories</option>
                                <option value="Nova Scotia">Nova Scotia</option>
                                <option value="Nunavut">Nunavut</option>
                                <option value="Ontario">Ontario</option>
                                <option value="Prince Edward Island">Prince Edward 
                                Island</option>
                                <option value="Quebec">Quebec</option>
                                <option value="Saskatchewan">Saskatchewan</option>
                                <option value="Yukon Territory">Yukon Territory
                                </option>
                                <option value="">-- AUSTRALIA --</option>
                                <option value="Australian Capital Territory">
                                Australian Capital Territory</option>
                                <option value="New South Wales">New South Wales
                                </option>
                                <option value="Northern Territory">Northern 
                                Territory</option>
                                <option value="Queensland">Queensland</option>
                                <option value="South Australia">South Australia
                                </option>
                                <option value="Tasmania">Tasmania</option>
                                <option value="Victoria">Victoria</option>
                                <option value="Western Australia">Western Australia
                                </option>
                                </select> </td>
                            </tr>
                            <tr>
                                <td class="style2">Zip Code<span class="style8">*</span>:</td>
                                <td class="style1">
                                <input type="text" name="carzip" /></td>
                            </tr>
                            <tr>
                                <td class="style2">Owner'
    s Name<span class="style8">*</span>:</td>
                                <
    td class="style1">
                                <
    input type="text" name="ownername" /></td>
                            </
    tr>
                            <
    tr>
                                <
    td class="style2">Owner's Phone<span class="style8">*</span>:</td>
                                <td class="style1">
                                <input type="text" name="ownerphone" /></td>
                            </tr>
                            <tr>
                                <td class="style2">Comments:</td>
                                <td class="style1">
                                <textarea name="mesg" style="width: 158px" rows="1" cols="20"></textarea></td>
                            </tr>
                            <tr>
                                <td><a href="form.php">
                                <input type="submit" name="SubmitForm" value="Send" /></a></td>
                            </tr>
                        </table>
                    </form> 
    Last edited by HanneSThEGreaT; April 1st, 2010 at 03:15 AM.

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: Form works in internet explorer and not in firefox

    Please use codetags!

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,091

    Re: Form works in internet explorer and not in firefox

    Added &#091;PHP] Tags.

    dialetiklg3, please have a look here :

    http://www.codeguru.com/forum/showthread.php?t=429283

  4. #4
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,869

    Re: Form works in internet explorer and not in firefox

    You've encased your submit button in an anchor tag...that's just plain invalid and wrong. Remove the anchor from around it.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center