Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 05-18-2006, 06:05 AM ASP Form
Average Talker

Posts: 17
Trades: 0
i created a form in such a way that info submitted all goes to a Access databse and its working. the basicv purpose of that was that people listen music by signing in in my site............

But there is a probelm that when people sign in they get a Link for the Music page in the results page...i want things to work in a different way. becoz like this they can add pages to there favorites or can simply remeber the link but i want that who ever signins go directly to the music page.....in order to visist that music page very body should log in

HLP HELP HELP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
dani01 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-18-2006, 06:48 AM Re: ASP Form
Skilled Talker

Posts: 95
Trades: 0
well to automatically make the user go to a different page after sign in.

I suggest you use
response.rediredt("your page here")

and for not wanting people to be able to add athe page to their favourites which is what i think you are asking.

Soemthing like cookies
Ie. if they have the cookie they can go to the page if not they are redirected to another page.


You could do this many ways but the main options would be simple or complex
Simple: Even if your a member if your not logged in you cant see the page.

or
Complex:if you are member and have the cookie on the system then you will be automatically logged in.

Looking at the questions you ask on here, I suggest you go for the simple option

The use of cookies wont stop the user being able to add the page to their favorites, but it will stop the page from loading if they cookie is missing.

Last edited by higginbt; 05-18-2006 at 06:51 AM..
higginbt is offline
Reply With Quote
View Public Profile
 
Old 05-18-2006, 07:08 AM Re: ASP Form
Average Talker

Posts: 17
Trades: 0
But, If I do the responsewrite one, then the user will go directly to that page.....
without even checking from the databse that he has signed up or not?????

Right???
dani01 is offline
Reply With Quote
View Public Profile
 
Old 05-18-2006, 07:00 PM Re: ASP Form
Experienced Talker

Posts: 30
Trades: 0
Well! In ASP, I believe you can direct your customers to different page with <% if ... %> logic right? So you can check the validity of the login and return this value to decide which page should be redirected to.
__________________

Please login or register to view this content. Registration is FREE
MyOpinion is offline
Reply With Quote
View Public Profile
 
Old 05-18-2006, 07:22 PM Re: ASP Form
Average Talker

Posts: 17
Trades: 0
Well, MyOpinion have replied in a high technical language. MY friend my ASP knowledge is not that much, so..........

If i do response.redirect method than it will check that the customer if he is in databse and then redirst him?Right???
dani01 is offline
Reply With Quote
View Public Profile
 
Old 05-19-2006, 03:51 AM Re: ASP Form
Experienced Talker

Posts: 30
Trades: 0
You are correct! In other words

<% If (ReturnForDani01(Login, password) == true)
response.redirect ("Login successful page");
else
response.redirect ("Login failure page");
%>

where ReturnForDani01() is the function checking the validity of the login and password entered by your users

You've got it! Bingo!!
__________________

Please login or register to view this content. Registration is FREE
MyOpinion is offline
Reply With Quote
View Public Profile
 
Old 05-19-2006, 05:32 AM Re: ASP Form
Skilled Talker

Posts: 95
Trades: 0
If an if statement is high tech language then you need to get a book on ASP

but My opinion is correct. the simplest way to do what you want is to use an if statment.

He as stated you use a function, but i'm sure you wont know what that means or how to use one.
higginbt is offline
Reply With Quote
View Public Profile
 
Old 05-19-2006, 12:31 PM Re: ASP Form
Average Talker

Posts: 17
Trades: 0
THNX ALOT GUYS U GUYS ARE JUST GR8 MATTER OF FACT THIS FORUM IS GR8?????
How u guys know that much?? I know HTML but trying to learn asp and php? I am just 17 so i will learn it in near future anyways thnx
dani01 is offline
Reply With Quote
View Public Profile
 
Old 05-22-2006, 03:54 AM Re: ASP Form
Novice Talker

Posts: 14
Location: Italy
Trades: 0
I suggest youto use session to verify if the user is logged or not.
In this way, if he/she saves page as a bookmark, next time he'll open it, the session won't yet valid, until he logs again with personal data.

I suggest you not to use the syntax response.redirect in a If... then... else, but use the include:

If .... then

include the file1

Else

include the file2

End If
ninjaweb is offline
Reply With Quote
View Public Profile Visit ninjaweb's homepage!
 
Reply     « Reply to ASP Form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.08403 seconds with 12 queries