By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,723 Members | 1,414 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,723 IT Pros & Developers. It's quick & easy.

how to pass textbox value to <a href=new.php?cat='textbox value here'>

P: 8
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

<script language="javascript">

function yourChoice(form1)
return ("new.php?cat=" + form1.use.value);

<form name="form1">
UserName:<input type="text" name="use">
<a href="javascript:yourChoice(this.form)" onclick="'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-->



this code does not work it gives error
can anybody help me plz reply me
Jan 20 '07 #1
Share this Question
Share on Google+
1 Reply

P: 8
i got the answer 4 dis

u can check
and thanks to sankviju.
Jan 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.