what is the code where when i click on a button, then a value will be passed to the next page?
Thanks
how to pass value in asp
how to pass value in asp
|
|
Feb 4 2006, 04:14 PM, updated 20y ago
Show posts by this member only | Post
#1
|
![]()
Junior Member
6 posts Joined: Mar 2005 From: Sungai Long |
what is the code where when i click on a button, then a value will be passed to the next page?
Thanks |
|
|
|
|
|
Feb 4 2006, 10:06 PM
Show posts by this member only | Post
#2
|
![]() ![]() ![]()
Junior Member
358 posts Joined: Jan 2005 |
most reference book teach this, or search in the web lol.
|
|
|
Feb 5 2006, 02:04 PM
Show posts by this member only | Post
#3
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
4,607 posts Joined: Jan 2003 From: Malaysia |
CODE <form action="newpage.asp" methods=POST> <input type="hidden" name="name1" value="value"> </form> |
|
|
Feb 5 2006, 06:32 PM
Show posts by this member only | Post
#4
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,490 posts Joined: Sep 2004 |
at the requesting page, u can request the variable value by using request.form("...") command
e.g: myname = request.form("name") myname is the variable name and "name" is the textfield name on the previous page.. here is a good tutorial for u : http://www.codefixer.com |
|
|
Feb 6 2006, 01:11 PM
Show posts by this member only | Post
#5
|
![]() ![]() ![]() ![]() ![]()
Senior Member
963 posts Joined: Jan 2003 |
or u can stored it in ur cookies or session key
|
|
|
Feb 7 2006, 11:05 AM
Show posts by this member only | Post
#6
|
![]() ![]() ![]() ![]()
Senior Member
563 posts Joined: Apr 2005 |
use post method to pass the form values and request it in the next form by using request.form("name_of_field")
or request.querystring to get value from the address, ex http://forum.lowyat.net/default.asp?userna...ite&gender=male or store it in the session session("username") = "lovebite" i am not too expert, anyway hope it helps |
| Change to: | 0.0168sec
0.51
5 queries
GZIP Disabled
Time is now: 23rd December 2025 - 02:33 AM |