|
| |
|
|
hawleyr
Posts: 19 Joined: 8/24/2007 Status: offline
|
Forcing visitor to a different page first - 4/1/2008 12:47:11
I've got this great asp based web interface to an Access database working thanks to this website but I have one other question. I've got a page were a user searches on their registered info (Page A) and when they find their info they click continue and their info is passed to Page B's form and auto populates several fields. My problem is that I want to make sure people Visit Page A first rather than just going to Page B. I know there should be some way that if they go to Page B directly, it looks for some cookie that Page A would create. If the cookie isn't there then they get auto forwarded to Page A. I'd also need that cookie to expire once they close their browser or once they visit Page B would be even better. I'm not sure how to do any of this. Does anyone know of a good tutorial or site that can help out? Or, if someone knows an easier way to do this I'd be very appreciative. Thanks, Ron
|
|
|
|
rdouglass
Posts: 9229 From: Biddeford, ME USA Status: offline
|
RE: Forcing visitor to a different page first - 4/1/2008 13:14:53
Could you just put a hidden field on the form of Page A? I do that quite frequently: This on page_a.asp: <input type="hidden" name="properSubmitPageFlag" value="yes"> and this on page_b.asp: If Request.form("properSubmitPageFlag") <> "yes" Then response.redirect("page_a.asp") End If That help any?
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|