kenzai Posted January 1, 2007 Share Posted January 1, 2007 sorry guys i posted the question on the wrong sub forum, so i reposted my problem here.. [quote name='kenzai' post='53391' date='Jan 2 2007, 02:54 AM']I'm noob in webpage programming cuz I just know how to use WSYIWYG editor (learned html a few years ago, tat time i was making simple webpage using notepad =D)I plan to make a website with membership system which require login.After the login, the member will arrive in a page where I customize the page with my own images of logout, edit profile, link to member page that only accessable by that member..Can javascript do this? Or php (is it same like javascript function or it is just an alternative of html?)Please forgive me for my noob question and any english mistake..[/quote][quote name='The master' post='53392' date='Jan 2 2007, 02:59 AM']No with javascript u can't make a page that is only viewable by that member, for that section u should be with PHP.I dont know that language.But u can make a prompt box that brings the user to another pagewith a sort of passwordlike [html]<script type="text/javascript">function pass(){var pass= prompt ("pls enter the password","***")var mypass = "hello"if (pass==mypass){document.location="http://www.....")}</script>[/quote][quote name='kenzai' post='53394' date='Jan 2 2007, 03:06 AM']oo ok i got it.. but what if I use PHP to make that member login page? The login page is like how we login to yahoo where example, pages like your score point in yahoo games, the profile of your yahoo id, reading the mail box etc.. (sorry if my sentences seem confusing, i wanted a website just like how we login into yahoo/msn where we browse using our own id, browse profile of other member, can send mail to other members etc.)so do I need to learn SQL too in order to make that kind member login page using PHP programming?[/quote] Link to comment Share on other sites More sharing options...
pulpfiction Posted January 2, 2007 Share Posted January 2, 2007 Yes you will need a database to store, update user information. so SQL is a must....here's a simple example for PHP and MYSQL login scripthttp://php.about.com/od/finishedphp1/ss/php_login_code.htm Link to comment Share on other sites More sharing options...
justsomeguy Posted January 3, 2007 Share Posted January 3, 2007 Also, never use Javascript for anything like this. You can look at the source of the page and get both the password, and wherever the redirect goes and just type it in yourself. A server-side language like PHP is the only way to do this securely, and a database is the easiest way to store your account information. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now