im working on php
i want the textbox value to pass in a href
it goes as this
<input type="text" name="use">
<a href="new.php?cat=textbox value dat is entered">
plz tell me wat to do
i was trying il giv my code
<html>
<head>
<title>g</title>
<head>
<script language="javascript">
function yourChoice(form1)
{
return ("new.php?cat=" + form1.use.value);
}
</script>
</head>
<body>
<form name="form1">
UserName:<input type="text" name="use">
<a href="javascript:yourChoice(this.form)" onclick="window.open('javascript:yourChoice(this.f orm)','', 'width=500, height=500, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false">Check the availability</a>
<!--a href="javascript:yourChoice(this.document.all['form1']));">cc</a-->
</form>
</body>
</html>
this code does not work it gives error
can anybody help me plz reply me