Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Anybody Know PHP?
Xeno
post Oct 26 2006, 11:09 PM
Post #1



*******

Group: Members
Posts: 2,238
Joined: 11-February 06
Member No.: 3,621



I need help with a registration script.

I Have iLogin now installed on my server (Now i have HSACSESS files stoping non members from seeing into the games pages), Along with a MySQL database on my host, figured out how to use phpMyadmin but i need help with even starting to learn this dam hard programming language

I have these feilds

ID, Username, Password and Email,

In the database I now have the ID to autonumbered so thats not a problem anymore.

But, I tryed multiple premade scripts off google for registration, and they arnt working.

HELP ?!!??!??!!
Go to the top of the page
 
+Quote Post
Google Bot
post Oct 26 2006, 11:09 PM
Post #


Google Ads









Go to the top of the page
 
Quote Post
Web Majick
post Oct 27 2006, 04:39 AM
Post #2



***

Group: Members
Posts: 623
Joined: 23-March 04
Member No.: 474



sure, how can i help...

I have not seen this script, but judging from the database table structure you showed us, i would say this is not really a very good one.

I have to run just at the moment, but will elaborate in a little while.
Go to the top of the page
 
+Quote Post
Web Majick
post Oct 27 2006, 06:07 AM
Post #3



***

Group: Members
Posts: 623
Joined: 23-March 04
Member No.: 474



I would suggest using some form of email address validation.

This is pretty important if you have a members area, since you probarbly don't want your members database filling up with duplicate entries of the same person or email address.

Also you would probarbly want valid email addresses in your database so you can contact members as well.

In order to do this, one of the best methods i have found is to generate random strings and email that to the new member as a link so they can click on it and activate thier account. It is a more secure method than by using email addresses or member_id's.

An example of creating a unique string is shown below.

$_SESSION['unique_string'] = md5(base64_encode(session_id()));


This takes the session_id then does a base 64 operation on it, then encrypt it with md5, not much chance of guessing it.

Once the member has validated thier account you set a flag, 'logged_in' or something like that, as a session variable.
then you can perform checks against that. For example:

if($_SESSION['logged_in']){
include("./path/to/members.script/php");
}else{
header("location ./bad_login_attempt.php");
exit;
}


If you use sessions, which i would recomend, once the browser window is closed the session expires (internet cafe issues etc...) the site cannot be accessed without logging back in.

I know this is not really a simple solution to your particular issue, since i am not familiar withthe script your using, but it is not very hard to create your own.

So, if you need a hand to create your own members script, or you want me to install one for you, just let me know and i will be happy to help you out.

else check out this link: http://www.zend.com/codex.php?CID=341

smile.gif
Go to the top of the page
 
+Quote Post
Xeno
post Oct 27 2006, 08:34 AM
Post #4



*******

Group: Members
Posts: 2,238
Joined: 11-February 06
Member No.: 3,621



Thanks Majick.
Go to the top of the page
 
+Quote Post
airlinemusic
post Oct 27 2006, 03:23 PM
Post #5



**

Group: Members
Posts: 391
Joined: 19-April 06
Member No.: 4,043



Who put Perl on internet servers.
One of the people that invented it I suppose.
I recall some one from Cold Spring Harbor.

I was a good parsing script but I got lost quickly.
Glad the problem is fixed so I can make inane comments.
Go to the top of the page
 
+Quote Post
Web Majick
post Oct 29 2006, 07:13 AM
Post #6



***

Group: Members
Posts: 623
Joined: 23-March 04
Member No.: 474



how did you go xeno?
Go to the top of the page
 
+Quote Post
Xeno
post Oct 29 2006, 11:36 AM
Post #7



*******

Group: Members
Posts: 2,238
Joined: 11-February 06
Member No.: 3,621



Ive been to tired to attemp lately, im waiting till i can be bothered to do it again.
Go to the top of the page
 
+Quote Post
ThePredator
post Oct 29 2006, 03:37 PM
Post #8



*****

Group: Members
Posts: 1,720
Joined: 17-May 05
Member No.: 2,325



Here the tutorial I started with http://www.webmonkey.com/webmonkey/01/48/i...?tw=programming
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 7th October 2008 - 09:21 PM