Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

href and QueryString

Status
Not open for further replies.

AGNEW2PRG

Technical User
Aug 5, 2003
98
AE
hi,

i am a bit stuck, i am trying to pass the QueryString value(v0) into the link, no errors appear but the on click command doesnot redirect. Any help would be great...

<input type="button" name="contract" value="Contract" onclick=<a href=" "contract.asp?p_id=<%=v0%> " ">

thanks
 
><input type="button" name="contract" value="Contract" onclick=<a href=" "contract.asp?p_id=<%=v0%> " ">
It could simply be scripted as an anchor element.
[tt]<a href="contract.asp?p_id=<%=v0%>">contract</a>[/tt]
If for some reason, within a form, input button control has special appeal, you can do this.
[tt]<input type="button" name="contract" value="Contract" onclick="window.location='Contract.asp?p_id=<%=v0%>'">[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top