limitphp Posted January 13, 2009 Share Posted January 13, 2009 For things like text boxes and forms and other names and ids of divs, etc, can you use dashes? ex) <div id='test-name'> <input type='text' name='search-col'> Quote Link to comment https://forums.phpfreaks.com/topic/140721-solved-form-and-input-names/ Share on other sites More sharing options...
limitphp Posted January 13, 2009 Author Share Posted January 13, 2009 I usually use underscores to seperate two words, or capitalize the second word...but I would much rather use dashes and keep names and ids all in lowercase. Quote Link to comment https://forums.phpfreaks.com/topic/140721-solved-form-and-input-names/#findComment-736540 Share on other sites More sharing options...
premiso Posted January 13, 2009 Share Posted January 13, 2009 For things like text boxes and forms and other names and ids of divs, etc, can you use dashes? ex) <div id='test-name'> <input type='text' name='search-col'> Yes you can. Quote Link to comment https://forums.phpfreaks.com/topic/140721-solved-form-and-input-names/#findComment-736544 Share on other sites More sharing options...
revraz Posted January 13, 2009 Share Posted January 13, 2009 It's easy to just try and see too. Quote Link to comment https://forums.phpfreaks.com/topic/140721-solved-form-and-input-names/#findComment-736561 Share on other sites More sharing options...
limitphp Posted January 13, 2009 Author Share Posted January 13, 2009 thanks Quote Link to comment https://forums.phpfreaks.com/topic/140721-solved-form-and-input-names/#findComment-736599 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.