I have a form in which there is one text field is provided with a submit button.On clicking submit button,it redirects to second php page from first php page.
index.php
<form action=submit.php method=get>
<input type=text name=search id=search />
<input type=submit value=submit onclick=convert() />
</form
<script type=text/javascript>
function convert()
{
alert(hi);
var str ;
str = document.getElementById(search).value;
document.writeln(str.toLowerCase());
}
</script>
On submitting the form,i want the url to become like submit.php?search=text
I want this text to be in lower case,although if text entered is uppercase.
Please guide me how to make this text lower case,I am using the above script for converting it to lower case.But its not converting the text in lower case in URL.
Please guide me on this..