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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link with URL

Status
Not open for further replies.

webgek

Programmer
Jun 10, 2005
11
NL
hi,

I want to link a textbox to a url

At this moment I have this url is below to another website

servlet/protect/gateway?to_page_id=ticketdetails&tixnum=recordid

my site is have a textbox
so when entering a record number for example 15
it should go to the site where it shows the record details.

but get some problems with linking the textbox to the url.

when doing this
servlet/protect/gateway?to_page_id=ticketdetails&tixnum=15
it is working fine

but doing with the textbox (= recordid) is not working
can you please advise me what to do or what to change?

thx kisoen
 
may be you should try something like this...

servlet/protect/gateway?to_page_id=ticketdetails&tixnum="&request.form("recordid")&"

-DNG
 
alternatively, you could write some Javascript to set the ACTION property as part of an on submit event.

<script language="javascript">
function handleSubmit()
{
document.myForm.action="servlet/protect/gateway?to_page_id=ticketdetails&tixnum=" + document.myForm.field1.value;

document.myForm.submit();
}
</script>

<form method="post" name="myForm">
<input type="text" name="field1">
<input type="button" onclick="handleSubmit()" name="submit">
</form>
 
or remove "POST" method and use GET method???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top