Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Login form/getting variable

Status
Not open for further replies.

spencern

Programmer
Joined
Dec 20, 2001
Messages
78
Location
US
Hi,
I need help getting a variable to use while using the login form that is built into UD. I have people who should be able to login and when they do that, it will take them to their page, preferably by using the URL parameters for a details page. I have made the pages that they will login to with a database and some dynamic text, but the only way to get to them is by using a URL parameter to pass on their name to the next page.
If anyone has any way that I can get a variable out of the login form, or has another idea on how I can make the pages work without the url parameters, please let me know
Thanks,
Spencer
 
The most secure method is with session variables.

This combined with their logged in user name or ID makes it so someone cannot play around with id numbers and change or get into areas you do not desire them to be.

Couple of questions though.

Will every user have an individual page?

Or will you have different items showing for users who are at the same level. For example

Guests see your basic stuff
Members see basic stuff plus member items
Admin's see basic stuff, member stuff & the Admin only items.

Note also, with Session variables - you can have wherever you want - Hello Mr. Tek-tipper (the name or whatever info is pulled from their login)The last item you did was blah blah blah. This stuff is through relationships within the database.

In plain English - you can make a very secure page - in fact the same exact page they all get - BUT, depending on their user level - they see items only meant for their level - but all text items show a "personalized" webpage displaying maybe their name - the town they are from - any fields you designate within your database.

Give me a little more info - I'll try to point you in a more specific area.

"If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote"

Stuart
 
We'll right now, I have used a repeat region and some recordset text to repeat about 90 name down a page. When you click on a link next to a name, it brings you to a page with the name at the top and some textboxes below to fill in.
What I want to be able to do is skip the 90 person list altogther, so it would go from the login page made with the login user server behavior, directly to the correct personalized page.
Like I said before, right now I'm using URL paramaters to get the username for the recordset on the second page, and I'm not sure if there is a better way to do this.

Thanks,
Spencer
 
Ok,

One thing you can easily do (staying with the 90 person list) is put the recordset info right into the url link. Beats keying it in directly.

Here is a great link for edit info. You log the person in (or rather they do), and you follow it through to edit their info.

 
We'll the edit account information on the site you sent would work, but I'm not quite sure how to do it. I'll give a try though. If you want to see what I'm working with, it is at That part is not password protected. I'm basically trying to link directly from the login page to the comments page.

Thanks,
Spencer
 
Hey Spencern,

Emailing you a fantastic set of pages that does it all - login, register, edit account, etc.

I'd recommend taking the pages - and putting your html around it.

If you run into problems let me know :)

Stormhosts is great - Matthew is a good guy there. "If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote"

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top