navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Forcing visitor to a different page first

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Forcing visitor to a different page first
Page: [1]
 
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.

(in reply to hawleyr)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Forcing visitor to a different page first
Page: [1]
Jump to: 1





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