pass variable to next page with having submit button

W

weiwei

Hi all
I am having trouble, let's say, I have a form text field, and I want
to pass it to the next page, however, I don not want to use submitted
button, instead I want to have a variable in link and pass that
variable to the next page
see below code


<form name="form1" method="post" action="">
name
<input type="text" name="name">
</form>
<%
name = Server.URLEncode("# wei")
%>
<a href="asp1.asp?name=<%=name%>&form=<%name%>">next</a>

is there any way to pass those variable to the next page without
having the submitted button

thanks in advance
 
J

joker

They will be passed on if they click on the link. All you have to do is
have that page read the values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top