Forums

This topic is locked

help please

Posted 25 Dec 2001 02:23:52
1
has voted
25 Dec 2001 02:23:52 salman khan posted:
how can i avoid user filling data requested in user profile page even when registered in order to purchase. my userprofile page is after shopping cart page and before checkout confirm page. i want my user to bypass this page if they are registered already and only show if they are first time users.

with regards
salman.

Replies

Replied 25 Dec 2001 15:24:49
25 Dec 2001 15:24:49 Michael Moore replied:
Salman
I need a little more information but I will try here... You have to establish that they already exist in your database i.e. they have registered before. That is usually done with a login. If they haven't logged in, there is no way to know if they are already registered. So... if they are not logged in, you have to ask them to login or register. Don't just offer the profile page. If they are already logged in check for that and redirect accordingly with response.redirect("pagenamehere". I am here today if you need more help. Mike

Replied 25 Dec 2001 16:18:57
25 Dec 2001 16:18:57 salman khan replied:
Ok i am sorry i wasn't clear. but basically user profile page is where i get them to provide payment and perosonal information. whats happening is even when they are registered and logged in they see this page after clicking checkout in shopping cart page. ideally i want the system to skip the user profile page when they are registered and logged in and jump straight to check out page and retrieve address and payment details from database so they can edit it. i hope this is clear. Salman
I need a little more information but I will try here... You have to establish that they already exist in your database i.e. they have registered before. That is usually done with a login. If they haven't logged in, there is no way to know if they are already registered. So... if they are not logged in, you have to ask them to login or register. Don't just offer the profile page. If they are already logged in check for that and redirect accordingly with response.redirect("pagenamehere". I am here today if you need more help. Mike




with regards
salman.
Replied 25 Dec 2001 20:01:37
25 Dec 2001 20:01:37 Michael Moore replied:
That all sounds good Salman. Are you familiar with Session variables? If they are logged in and registered just have a snippet at the top of the page you don't want them to see that says (in layman's terms) if this user is already registered, redirect them to a different page, otherwise continue on this page. Here is a sample code snippet
<%
if Session("svCustID"<> "" then
esponse.redirect "thePageIWantThemToGoTo.asp"
end if
%>
if they don't meet this criteria they will not be redirected. Good luck

Reply to this topic