web_master Posted November 8, 2011 Share Posted November 8, 2011 Hi, I'm trying to learn html5 and I got a problem.... I want to use: <input type="email" id="email" name="email" placeholder="xxx@xxx.com" required="required"> When I leave the form empty after submit, there is a message like: "Please fill out this field". So is there any solution to this message become on other language? (and maybe the other messages works with form in HTML5) Thnx in advanced T Quote Link to comment https://forums.phpfreaks.com/topic/250728-html5-input-field-help/ Share on other sites More sharing options...
requinix Posted November 8, 2011 Share Posted November 8, 2011 So is there any solution to this message become on other language? What? The message is provided by the browser. If you don't like how the browser is doing that then you'll have to do it yourself. Quote Link to comment https://forums.phpfreaks.com/topic/250728-html5-input-field-help/#findComment-1286376 Share on other sites More sharing options...
web_master Posted November 8, 2011 Author Share Posted November 8, 2011 So is there any solution to this message become on other language? What? The message is provided by the browser. If you don't like how the browser is doing that then you'll have to do it yourself. what is the solution for that? (php... or other) Quote Link to comment https://forums.phpfreaks.com/topic/250728-html5-input-field-help/#findComment-1286408 Share on other sites More sharing options...
requinix Posted November 8, 2011 Share Posted November 8, 2011 Depends. You could roll your own JavaScript code (fairly easy), use a jQuery plugin (if you're so inclined), or skip the client-side validation and have PHP check the required fields (a good idea to do regardless). Quote Link to comment https://forums.phpfreaks.com/topic/250728-html5-input-field-help/#findComment-1286422 Share on other sites More sharing options...
Dragosvr92 Posted November 9, 2011 Share Posted November 9, 2011 hmmm.. If the person that visits your site is for example from Romania and prefers to have his browser in English, better leave it like that. English is the Internet language anyways. Quote Link to comment https://forums.phpfreaks.com/topic/250728-html5-input-field-help/#findComment-1286453 Share on other sites More sharing options...
web_master Posted November 10, 2011 Author Share Posted November 10, 2011 hmmm.. If the person that visits your site is for example from Romania and prefers to have his browser in English, better leave it like that. English is the Internet language anyways. The problem is that there is a people who speak Hungarian language, and many of are they don't know english language. I will try jQuery. Thanx requinix, thanx TheKiller. T Quote Link to comment https://forums.phpfreaks.com/topic/250728-html5-input-field-help/#findComment-1286934 Share on other sites More sharing options...
Dragosvr92 Posted November 10, 2011 Share Posted November 10, 2011 Yes, but if they are Hungarian, they should use a Hungarian Based Web browser. And not English. Im Romanian and use all Programs i install In British English. Quote Link to comment https://forums.phpfreaks.com/topic/250728-html5-input-field-help/#findComment-1287020 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.