A scenario that passes a variable from the first page to a third page under certain conditions

Source: Internet
Author: User
Tags urlencode
Variables | conditions | Page Hello, I'm Jackie Chan, nice to meet you again.

Last time in Chinaasp's forum, a friend asked how to transfer several variables from the first page to the third page (the second page provided only the steering function, that is, Response.Redirect (), and could not use the session, when I saw no way to think of the number, Now have a little thought, specially posted out to share with you

I'll just give you the second page code.
(where the first page is passed is the name of the form and the sex
The following methods are implemented:
<% name=request.form ("name")
Sex=request.form ("Sex")
Url= "Temp3.asp"
part1= "Name=" &server.urlencode (name)
Part2= "sex=" &server.urlencode (Sex)
Response.Redirect url& "?" &part1&part2
%>

Third page with Request.QueryString () you can receive the data you want!


Jackie chan
2001/7/20



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.