Orionsbelter Posted April 7, 2009 Share Posted April 7, 2009 hello, i wish to have a single input box and instead of pressing a submit button i wish to press enter instead hwo would the code look? Link to comment https://forums.phpfreaks.com/topic/153011-help-with-input-box-press-enter/ Share on other sites More sharing options...
mrMarcus Posted April 7, 2009 Share Posted April 7, 2009 sounds like you've got a case of the HTML's .. no PHP about it. Link to comment https://forums.phpfreaks.com/topic/153011-help-with-input-box-press-enter/#findComment-803637 Share on other sites More sharing options...
Orionsbelter Posted April 7, 2009 Author Share Posted April 7, 2009 hmm, well what i mean is like search username i input John Doe and press enter of keyboard instead of using a submit button Link to comment https://forums.phpfreaks.com/topic/153011-help-with-input-box-press-enter/#findComment-803639 Share on other sites More sharing options...
premiso Posted April 7, 2009 Share Posted April 7, 2009 This is a Javascript issue. OnKeyPress is what you want to google/research. http://www.w3schools.com/jsref/jsref_onkeypress.asp Link to comment https://forums.phpfreaks.com/topic/153011-help-with-input-box-press-enter/#findComment-803642 Share on other sites More sharing options...
Fruct0se Posted April 7, 2009 Share Posted April 7, 2009 Here is an article on it: http://www.thefutureoftheweb.com/blog/submit-a-form-in-ie-with-enter Link to comment https://forums.phpfreaks.com/topic/153011-help-with-input-box-press-enter/#findComment-803644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.