How to add ucwords and strtolower to this form
- by Liso22
I want "s.value" to be turned all to lowercase and then ucwords to it but I don't know how to do it since it's inside a form.
Basically I want to do something like this: ucwords(strtolower( s.value here ));
This is the form:
<form role="search" method="get" id="searchform" action="http://chusmix.com/?s=" onsubmit="if (document.getElementById('s2').value.length > 5) window.location = action + '<php echo $city; ?>++++' + s.value; return false;" >
Thanks