Report, edit, etc...Posted by S)T-Twitch6000 on 2007-02-06 at 16:21:22
Well I am better with html so try to give me it in html the code i need is a register page code,also a user log in.If someone knows this please give me the code in html code
Report, edit, etc...Posted by Centreri on 2007-02-06 at 16:44:19
You can't make a page register or login script in HTML. And unless you have a specific function for the login script, you don't need it. Before mentioning PHP and asking for a script at least figure out how PHP works...
Report, edit, etc...Posted by Cole on 2007-02-06 at 17:21:21
I can't imagine how good you are at HTML, because it seems you don't even understand how it works.
If your going to do a login system your either going to a programming or scripting language. HTML is a markup language. Javascript is a scripting language. You could do it with javascript, however I could easily figure out all the passwords and usernames in about 2 seconds.
If you don't understand HTML I doubt you could understand PHP or ASP and how they work. I doubt you will understand the below but this is how I would describe it to a person:
Make a form in HTML. Have it link to a PHP script. I'd recommend using POST not GET. Then from php you can access the data sent from the form from $_POST['form_data_name'];
Then your going to need a database like MYSQL to store all the usernames and passwords.
Use a while statement to loop through all the usernames/passwords in the database. Use an if statement that compares the right $_POST[''] variables, and if they check clean then add a cookie that has a datacode that's also stored in the database for there username and password.
While technically you don't need a SQL database and you could do everything in notepad, you're running security risks, and a lot of possible flaws that can't really be overcome.
You wont be able to pull this off if your webhost does not have: -SQL Database -PHP(or ASP)
Report, edit, etc...Posted by MindArchon on 2007-02-06 at 17:57:00
PHP is your best solution as Cole helpfully posted.
Also, use some sort of password encryption to guarantee some sort of password security. There are ways to do a login script without the while loop, but Cole posted a solid answer.
Report, edit, etc...Posted by Cole on 2007-02-06 at 18:20:04
QUOTE
There are ways to do a login script without the while loop, but Cole posted a solid answer.
My guess there is a simple search function? I havn't written PHP code in like a year.
Yeah definently encrypt the passwords and even the username.
Report, edit, etc...Posted by O)FaRTy1billion on 2007-02-06 at 18:40:22
You COULD use text files instead of a database... but text files are easily accessed.
Report, edit, etc...Posted by Pie_Sniper on 2007-02-06 at 19:55:51
That's why you hash the passwords and deny access to those files.
Report, edit, etc...Posted by S)T-Twitch6000 on 2007-02-06 at 22:09:42
Well why I need a user log in and register is cause I am rminking my old site and it has not alot of stuff but it does have a chat oage so My main thing is getting a some php help which i seen the link and the code itself later ill get help thanks.
Report, edit, etc...Posted by Syphon on 2007-02-06 at 22:17:48
QUOTE(O)FaRTy1billion @ Feb 6 2007, 06:40 PM)
You COULD use text files instead of a database... but text files are easily accessed. [right][snapback]623974[/snapback][/right]
Embed the passwords as comments in a PHP file, and make your script access it.
Report, edit, etc...Posted by ShadowFlare on 2007-02-06 at 22:26:07
QUOTE(Pie_Sniper @ Feb 6 2007, 06:55 PM)
That's why you hash the passwords and deny access to those files. [right][snapback]624008[/snapback][/right]
And also put them somewhere that cannot be accessed through the web server, if that is possible (some hosts do have that option).
Report, edit, etc...Posted by Centreri on 2007-02-07 at 17:41:50
Twitch? Does your host support PHP?
And please use punctuation... reading your posts is hell.
Report, edit, etc...Posted by S)T-Twitch6000 on 2007-02-08 at 02:10:28
QUOTE(Centreri @ Feb 7 2007, 05:41 PM)
Twitch? Does your host support PHP?
And please use punctuation... reading your posts is hell. [right][snapback]624296[/snapback][/right]
First I am remaking my site so when I find a host it will and second I am to fast on my keyboard I relize I have to fix my spelling and grammer errors sorry and thank you for pointing it out.
Report, edit, etc...Posted by Syphon on 2007-02-08 at 08:13:19
QUOTE(S)T-Twitch6000 @ Feb 8 2007, 02:10 AM)
First I am remaking my sit so when I find a host it will and second I am to fast on my keyboard I relize I have to fix my spelling and grammer errors sorry and thank you for pointing it out. [right][snapback]624600[/snapback][/right]
This post wasn't any better...
If you make that many mistakes while typing fast, you shouldn't be typing fast.
Report, edit, etc...Posted by S)T-Twitch6000 on 2007-02-08 at 13:14:57
QUOTE(Syphon @ Feb 8 2007, 08:13 AM)
This post wasn't any better...
If you make that many mistakes while typing fast, you shouldn't be typing fast. [right][snapback]624618[/snapback][/right]
Its not only me typing fast its this keyboard aswell its small and my fingers are big but thats what I get with a default keyboard.
Report, edit, etc...Posted by Centreri on 2007-02-08 at 17:19:28
Then type slowly.
Are you looking for a free script of some sort? Or are you looking for someone to teach you PHP? If the latter, get a book on it. If the former, www.hotscripts.com is a good place to start.
Report, edit, etc...Posted by Pyro-Fire on 2007-02-09 at 08:58:27
QUOTE(Centreri @ Feb 6 2007, 04:44 PM)
You can't make a page register or login script in HTML. [right][snapback]623931[/snapback][/right]
Report, edit, etc...Posted by Centreri on 2007-02-09 at 16:58:17
Okay, write me a login script in HTML.
Report, edit, etc...Posted by Cole on 2007-02-09 at 17:14:32
Pyro, you can't write a login/register script in HTML.
PHP is not HTML.
Report, edit, etc...Posted by Pie.CoM on 2007-02-09 at 17:38:35
Well, when I went through learning PHP, I found a couple of sites EXTREMELY helpful.
PHPFreaks.com - A very active forum, you can get help with most anything relating to web design there. They have some pros who can help you solve your problems, or help you set something up.
W3Schools - Since you're new to PHP, read the PHP and MySQL tutorials here.
Good luck.
Report, edit, etc...Posted by Pyro-Fire on 2007-02-09 at 20:17:57
QUOTE(Cole @ Feb 9 2007, 05:14 PM)
Pyro, you can't write a login/register script in HTML.
PHP is not HTML. [right][snapback]625334[/snapback][/right]
i wasnt referring to the person i quoted.
Report, edit, etc...Posted by Pie_Sniper on 2007-02-09 at 20:26:24
PHP.com? That's a new one...
Report, edit, etc...Posted by Centreri on 2007-02-09 at 21:02:24
PHP isn't commercial; why would it have a .com domain. It's http://www.php.net.
Report, edit, etc...Posted by Syphon on 2007-02-09 at 21:51:07
QUOTE(Pie_Sniper @ Feb 9 2007, 08:26 PM)
PHP.com? That's a new one... [right][snapback]625467[/snapback][/right]
I find it ironic that this organization, whose website is powered by PHP, didn't realise they stole their acronym.