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'> 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. 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. 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. 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 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
Archived
This topic is now archived and is closed to further replies.