How to add ucwords and strtolower to this form

Posted by Liso22 on Stack Overflow See other posts from Stack Overflow or by Liso22
Published on 2011-01-05T21:48:43Z Indexed on 2011/01/05 21:54 UTC
Read the original article Hit count: 170

Filed under:

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

© Stack Overflow or respective owner

Related posts about php