<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
label {
<script type="text/javascript">
function goTo()

var city = document.forms[0].city.value;
var state = document.forms[0].state.value;
return false;
<form action="" method="get" onsubmit="return goTo()">

<label for="city">Enter the city:
<input type="text" name="city" id="city">
<label for="state">Enter the state:
<input type="state" name="state" id="state">
<input type="submit" value="Submit">


what i m trying to do is when i press submit, it will redirect me to a url with the values that i submited in the form ..

what wrong i m doing .. thanks in advance