PDA

View Full Version : PHP Form validation not working in IE


J_mo
10-11-2010, 07:54 PM
Hi,

I have created an online application form which is quite extensive and tested the validation in all browsers. Whilst the validation works in Firefox & Safari it does not work in IE.

Do you know of any possible reason for this??

http://test.quickcashpayday.co.uk/test/apply/

Thanks
Phil

gentleone
10-11-2010, 09:30 PM
I had a quick look at your source code and I see that you load 2 versions of jquery (1.2.6 and 1.4.2). I'm not sure, but it might be causing a conflict. Why do you have them both?

Oh and... nice looking site btw :)

edbr
10-12-2010, 01:08 AM
as you are refering to browsers i assume this is a client side problem so it may be a s gentleone says or work through these returned warnings
Result: 0 errors / 41 warnings

line 376 column 55 - Warning: <input> element not empty or not closed
line 377 column 55 - Warning: <input> element not empty or not closed
line 378 column 51 - Warning: <input> element not empty or not closed
line 383 column 150 - Warning: unescaped & or unknown entity "&license_key"
line 641 column 7 - Warning: <input> element not empty or not closed
line 644 column 7 - Warning: <input> element not empty or not closed
line 645 column 7 - Warning: <input> element not empty or not closed
line 646 column 7 - Warning: <input> element not empty or not closed
line 648 column 7 - Warning: <input> element not empty or not closed
line 659 column 35 - Warning: unescaped & which should be written as &amp;
line 660 column 21 - Warning: <input> element not empty or not closed
line 661 column 123 - Warning: unescaped & which should be written as &amp;
line 661 column 146 - Warning: unescaped & which should be written as &amp;
line 659 column 1 - Warning: missing </div>
line 658 column 1 - Warning: missing </div>
line 675 column 1 - Warning: discarding unexpected </div>
line 683 column 1 - Warning: discarding unexpected </div>
line 689 column 1 - Warning: missing </div> before <li>
line 690 column 1 - Warning: inserting implicit <ul>
line 690 column 1 - Warning: missing </ul> before </div>
line 720 column 247 - Warning: missing </small> before </p>
line 720 column 402 - Warning: discarding unexpected </small>
line 738 column 2 - Warning: discarding unexpected </div>
line 10 column 1 - Warning: <link> inserting "type" attribute
line 227 column 2 - Warning: <form> attribute value "POST" must be lower case for XHTML
line 235 column 1 - Warning: <select> anchor "Title" already defined
line 242 column 1 - Warning: <select> proprietary attribute "value"
line 383 column 32 - Warning: <script> inserting "type" attribute
line 661 column 107 - Warning: <a> escaping malformed URI reference
line 235 column 34 - Warning: trimming empty <option>
line 242 column 60 - Warning: trimming empty <option>
line 268 column 37 - Warning: trimming empty <option>
line 302 column 33 - Warning: trimming empty <option>
line 317 column 31 - Warning: trimming empty <option>
line 395 column 35 - Warning: trimming empty <option>
line 408 column 32 - Warning: trimming empty <option>
line 436 column 39 - Warning: trimming empty <option>
line 458 column 36 - Warning: trimming empty <option>
line 474 column 67 - Warning: trimming empty <option>
line 616 column 37 - Warning: trimming empty <option>
line 626 column 39 - Warning: trimming empty <option>

J_mo
10-12-2010, 09:43 AM
Hi both and thanks for your reply.

I have validated the page and think I have removed the relevant jquery files (could you double check maybe?) but still I have the same problem....I haven't a clue what it could be.

The html that appears on validation from the php does not appear in IE on form submit (checked source). Is this defo a server side issue?

Thanks
Phil

J_mo
10-12-2010, 11:02 AM
Kind of sorted it....IE didn't like my submit button!

gentleone
10-12-2010, 11:33 AM
Kind of sorted it....IE didn't like my submit button!

Cool that you sorted it out, but what didn't like IE about your submit button. Perhaps you can prevent someone else making the same mistake.

J_mo
10-12-2010, 12:06 PM
Yes...how selfish of me!!

I had

<input type="image" name="Submit" id="Submit" value="Submit" src="http://www.iamphiljames.co.uk/test/qcp_wp/img/form_submit.gif" class="form_submit"/>

I remembered reading something about IE not liking image submits so just changed to

<input type="submit" name="Submit" id="Submit" value="Submit"/>

Thanks