Sign in to follow this  
mellonamin

[web] Registering on a site....

Recommended Posts

How can I set up a way for users to register on my site? Like giving them a way to login and such and be able to have special priveleges as members...I know it has to do with cookies and such, but I'm not that experienced in web design...

Share this post


Link to post
Share on other sites
What is your site capable of using besides HTML? Are you running your own server? how do you want the login to work? can you use PHP/SQL (or some other language)?
I recomend looking into sessions w/ php or maby .htaccess files.

Share this post


Link to post
Share on other sites
Well, I don't actually have the site that I want to do this on yet, I am just planning and wondering how I would do such a thing...the hosting I am looking at using has PHP support, MySQL support, etc. but I don't know how to use any of those...I am a VERY noob web developer and only know HTML and a little bit of javascript...I am planning on learning as much as possible though and am using W3Schools to do that...

Share this post


Link to post
Share on other sites
If you are looking to just allow access to some pages to only certain users, I would recommend using .htaccess method (easy http://webmonkey.wired.com/webmonkey/html/97/08/index2a.html?tw=backend ). But it sounds more like you want a login screen and actually know who is online. Learning PHP Is easy if you know C/C++ I would recommend just checking out www.php.net once you learn a enough to feel comfortable try looking into sessions http://us4.php.net/manual/en/function.session-start.php and you will be on your way. Once you get sessions down you will want to use MySQL to look up users and passwords. Check out http://webmonkey.wired.com/webmonkey/programming/php/tutorials/tutorial4.html for more info on that. I would highly recommend looking around www.webmonkey.com for other useful information, its great for web development.

Share this post


Link to post
Share on other sites
Quote:
Original post by mellonamin
Do I need to donwload PHP and Apache and MySQL if I am not going to run this website on my own server but on a host? Or, can I just learn PHP and start using it?


If you run your own server then you need to install it yourself. Check the relevant docs for whatever OS you are running. If you have a standard hosting package with PHP/MySQL then it's all pre-installed and you can use it straight out-of-the-box.

Share this post


Link to post
Share on other sites
Sorry to ask again, but about your last post: so since my host has PHP/MySQL support, I can just use it right away in my webpages and when I upload that page to my host the host automatically handles all of the "inside" work without me having to download PHP onto my PC? Sorry if I misunderstood...

Share this post


Link to post
Share on other sites
Yes, that's right. PHP is a server side scripting language (in contrast to e.g. javascript which is a client side scripting language. That means that whatever PHP script you write must output HTML code on the server. That HTML output will be sent to the client (visitor's browser) and displayed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this