cpjitservices Posted January 13, 2015 Posted January 13, 2015 Hi all, Im currently working on editing something on a php based site. I have a passowrd clear text box which is a mandatory field... however its only mandatory on firefox... ie and chrome its not mandatory. Weird..., youll be wondering why i have a plain text password box ? Its part of our bookin system and need passwords from customer pcs etc. I have a test server if someone could login and have a play ????? Link below: http://Http://filesafe.ddns.net/PCRT/repair login with admin and the password is thepassword..., this is only a test system so doesnt need to be secure. If someone could look at the code thatd be great.... Thanks all.
Arreks Posted January 13, 2015 Posted January 13, 2015 (edited) You need to provide the PHP if you want us to look at the code *edit* Actually I'm confused, which part isn't working? Edited January 13, 2015 by Arreks
localzuk Posted January 13, 2015 Posted January 13, 2015 OK, I just tested the password box on a new check in, it certainly isn't mandatory in Chrome. What code have you got marking it as mandatory?
Arthur Posted January 13, 2015 Posted January 13, 2015 What code have you got marking it as mandatory? I think this is the code that @cpjitservices is referring to. The blue text isn't required though so that's probably why it isn't working in Chrome. i.e.
howartp Posted January 14, 2015 Posted January 14, 2015 As Arthur says, it shouldn't have ="required" if it's HTML. XHTML on the other hand should. I've just checked w3schools' page which has a 'try it' option - on both IE and Chrome it performs as intended: http://www.w3schools.com/tags/att_input_required.asp http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_required 1
cpjitservices Posted January 14, 2015 Author Posted January 14, 2015 Thanks everyone for your help ill give it a shot.
cpjitservices Posted January 14, 2015 Author Posted January 14, 2015 Tried removing =required... to no avail.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now