likwidmonster Posted March 22, 2008 Share Posted March 22, 2008 I ,am very confused I have just started in JavaScript. I ,am using a sub-domain so that is why I ,am not using php. ??? Please Help!!! Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/ Share on other sites More sharing options...
likwidmonster Posted March 23, 2008 Author Share Posted March 23, 2008 How do you make an username and password login in JavaScript!!! Please Help ??? Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-498575 Share on other sites More sharing options...
haku Posted March 23, 2008 Share Posted March 23, 2008 You can't. You need to use a server-side language. Â Actually, theoretically you could do it by creating a csv file on the server that holds everyone's usernames and passwords, then use an AJAX request to get the contents of the file, and read through them until you find a set that matches the current user. But it would be extremely insecure, and fairly difficult to write. Â The verdict - you need a server-side language. PHP, ASP, PERL whatever you want. But Javascript is not server-side. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-498578 Share on other sites More sharing options...
likwidmonster Posted March 23, 2008 Author Share Posted March 23, 2008 Thanks for the help! Which one do you recommend for a forum on a sub-domain without using database's? Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-498722 Share on other sites More sharing options...
Psycho Posted March 24, 2008 Share Posted March 24, 2008 The fact that you are ona sub-domain does not preclude you from using PHP or any other server-side language. Don't rely on JavaScript for any type of login system. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-499515 Share on other sites More sharing options...
likwidmonster Posted March 24, 2008 Author Share Posted March 24, 2008 ummm... would I be able to use ajax on a sub domain? Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-499724 Share on other sites More sharing options...
likwidmonster Posted March 24, 2008 Author Share Posted March 24, 2008 ummm... would I be able to use ajax on a sub domain? Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-499730 Share on other sites More sharing options...
Psycho Posted March 24, 2008 Share Posted March 24, 2008 Yes, there is nothing you can't do on a sub-domain that you can do on a domain. In fact a "domain" is in fact a sub-domain as well. Â php.net is a sub-domain of the TLD (Top Level Domain) .net Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-499764 Share on other sites More sharing options...
haku Posted March 25, 2008 Share Posted March 25, 2008 I think what he is referring to when saying he is a sub-domain, is that he doesn't have administrative access to the inner workings of the domain (for things like creating databases etc). Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-500093 Share on other sites More sharing options...
Psycho Posted March 25, 2008 Share Posted March 25, 2008 Well, then he is using the wrong terminology. In the first post the OP stated he couldn't even use PHP. If that is the case (and there is no other server-side code that can be used) then he is SOL. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-500099 Share on other sites More sharing options...
likwidmonster Posted March 26, 2008 Author Share Posted March 26, 2008 Okay thank you for your help! Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-501692 Share on other sites More sharing options...
likwidmonster Posted March 27, 2008 Author Share Posted March 27, 2008 i figured out that the server is a linix server. It is a linix server because they're faster then the other one's! Is there any language for a linix server for a forum? Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-502604 Share on other sites More sharing options...
Psycho Posted March 27, 2008 Share Posted March 27, 2008 It depends on what was installed on the server. Could be it supports PHP, Python, or any number of server-side languages. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-502659 Share on other sites More sharing options...
likwidmonster Posted March 28, 2008 Author Share Posted March 28, 2008 ohh... okay thanks I will figure out! Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-503023 Share on other sites More sharing options...
likwidmonster Posted March 29, 2008 Author Share Posted March 29, 2008 Hey... Is it possible to make it in actionscript? If so I have actionscript 2 I, am using Flash MX 6! [move]Thanks[/move] Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-504132 Share on other sites More sharing options...
haku Posted March 31, 2008 Share Posted March 31, 2008 No, for two reasons. The first is that flash also requires javascript to be enabled in order for it to work. The second is that you can only create the user interface with flash - you will still need a serverside language to do the processing to log the person in or out. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-505303 Share on other sites More sharing options...
likwidmonster Posted April 6, 2008 Author Share Posted April 6, 2008 hmmm... What can I do with a linux server? ??? Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-510444 Share on other sites More sharing options...
haku Posted April 6, 2008 Share Posted April 6, 2008 It depends on what languages your server is set up for. But PHP and ASP are common, and this here is a PHP forum before a javascript forum. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-510455 Share on other sites More sharing options...
quickstopman Posted April 7, 2008 Share Posted April 7, 2008 here's a test for you! make a new page (if you even have that much access) called php_test.html and inside that page put the following code. <?php echo "PHP IS WORKING! ?> when you save the page and load it and see: <?php echo "PHP IS WORKING! ?> then it isn't working if you save and load the page and see: PHP IS WORKING then your server has PHP on it  -Zack Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-510910 Share on other sites More sharing options...
haku Posted April 7, 2008 Share Posted April 7, 2008 With that method it will show  <?php echo "PHP IS WORKING! ?>  whether he has PHP installed or not.  Save the file name as 'php_test.php', not 'php_test.html'. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-510943 Share on other sites More sharing options...
quickstopman Posted April 7, 2008 Share Posted April 7, 2008 haku, all the servers ive used have had PHP installed so it works on any page as long as there are <? ?> sorry i forgot about that Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-510954 Share on other sites More sharing options...
haku Posted April 7, 2008 Share Posted April 7, 2008 The huge majority of servers have to be configured to recognize php in any file that doesn't end with a .php extension. Since the example you gave used a .html extension, it wont render the page. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-510989 Share on other sites More sharing options...
likwidmonster Posted April 7, 2008 Author Share Posted April 7, 2008 you don't get it! I don't have a server, I, am using a sub-domain off of my teacher because I, am friends with him. I can ftp to the sub-domain. Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-511271 Share on other sites More sharing options...
Psycho Posted April 7, 2008 Share Posted April 7, 2008 I guess I need to re-state what I stated on the previous page (with one addition): The fact that you are on a sub-domain does not preclude you from using PHP or any other server-side language assuming it is supported on the server. Â You are getting way too caught up on this "sub-domain" thing. If the server supoprts PHP, then it supports PHP. I create sub-domins all the time and, guess what?, those sub-domains support PHP without me having to do anything else. I'm sure there may be a way to disable PHP for a sub-diomain, but it would be the exception and not the norm. Did you even try any of the suggestions above to see if PHP is enabled? Â Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-511321 Share on other sites More sharing options...
likwidmonster Posted April 7, 2008 Author Share Posted April 7, 2008 "quickstopman" quick question... whats the meaning of you taping somthing on your finger? and saying smoke a bowl? Quote Link to comment https://forums.phpfreaks.com/topic/97351-how-do-you-make-user-acounts-and-user-login-on-a-website/#findComment-511458 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.