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

pass variable to next page with having submit button

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


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

weiwei wrote:
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


Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.