Jump to content

Login Script


kenzai
 Share

Recommended Posts

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..

Link to comment
Share on other sites

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>
Link to comment
Share on other sites

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, and we 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?

Link to comment
Share on other sites

[quote name='The master' post='53392' date='Jan 1 2007, 06:59 PM']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]users viewing the page could easily find the password by viewing the source - completely unsafe.and yes.. you will need to learn PHP/MySQL .. [u][color="#800080"][url="http://www.php-mysql-tutorial.com/"]http://www.php-mysql-tutorial.com/[/url][/color][/u]
Link to comment
Share on other sites

You need to make a database where everything is stored i think it's SQL that gathers the information out the MySQL database.But i am new to PHP so i dont know much about it

users viewing the page could easily find the password by viewing the source - completely unsafe.and yes.. you will need to learn PHP/MySQL .. http://www.php-mysql-tutorial.com/
yes i know it's completely unsafe i dont use it to store valueable information.But what if u put it in a external script::?But u dont get this *** sign by ur input thats for sure
Link to comment
Share on other sites

thank guys =) the reply is really informative and useful to me, especially the php mysql tutorial link ^^i reposted this problem on PHP forums.. sorry for the double post, any moderator here can closed this topic since it doesn't belong to javascript sub forums.. sorry for troubling and posted stuff belong to PHP sub forums..

Link to comment
Share on other sites

yes i know it's completely unsafe i dont use it to store valueable information.But what if u put it in a external script::?
people could still right click, see .. src="file.js" .. open the script and find the password. - glad the link came in useful btw
Link to comment
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
 Share

×
×
  • Create New...