GetDotted Domains

Viewing Thread:
"A few php issues"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 08/12/04 at 16:46
Regular
"Picking a winner!"
Posts: 8,502
After having to learn php pretty quickly for a project at uni I'm starting to enjoy it a lot more and have pretty much created what I set out to do for the first part of the project. There are just a few things I wanted to check.

For the system I've created I have users registering with the site, Just wondered what I should be checking when they click the submit button.

At the moment I check to make sure what is entered is not an empty string, that something has been entered and that it is of a suitable size. ie between 3 and 12 characters.
Using MD5 to hash their password and I'm asking for their password twice to make sure that they both match.

Was just wondering if there are other things I should be checking and how to go about it. ie how do I go about making sure that the date of birth they enter is a valid date? Would appreciate any other pointers.

When they register I'm asking for:
UserName:
Password:
Re-type Password:
First name:
Last name:
Address:
Town/City:
Postcode:
E-mail:
Mobile Phone Numer:
Date of Birth (YYYY-MM-DD):

Thanks
Wed 08/12/04 at 17:34
Regular
"Picking a winner!"
Posts: 8,502
Excellent.

Thanks
Wed 08/12/04 at 17:31
Regular
"NULL"
Posts: 1,384
Yeah, use sendmail() and it should work fine.
Wed 08/12/04 at 17:24
Regular
"Picking a winner!"
Posts: 8,502
Is it possible to send e-mails if I'm just running apache on my pc? Was something I meant to look into but totally forgot about.

Cheers for the link, just going to read through that now.
Wed 08/12/04 at 17:15
Regular
"NULL"
Posts: 1,384
You can validate their email address quite cleverly. For starters, you can check to see if the syntax is valid - e.g. it looks like a valid email address.

Secondly, you can actually run an MX check to see if that email address is a real email address that can accept email: [URL]http://www.zend.com/codex.php?id=449&single=1[/URL]

Of course, you can obviously send them an email and force them to validate the link...up to you...
Wed 08/12/04 at 16:46
Regular
"Picking a winner!"
Posts: 8,502
After having to learn php pretty quickly for a project at uni I'm starting to enjoy it a lot more and have pretty much created what I set out to do for the first part of the project. There are just a few things I wanted to check.

For the system I've created I have users registering with the site, Just wondered what I should be checking when they click the submit button.

At the moment I check to make sure what is entered is not an empty string, that something has been entered and that it is of a suitable size. ie between 3 and 12 characters.
Using MD5 to hash their password and I'm asking for their password twice to make sure that they both match.

Was just wondering if there are other things I should be checking and how to go about it. ie how do I go about making sure that the date of birth they enter is a valid date? Would appreciate any other pointers.

When they register I'm asking for:
UserName:
Password:
Re-type Password:
First name:
Last name:
Address:
Town/City:
Postcode:
E-mail:
Mobile Phone Numer:
Date of Birth (YYYY-MM-DD):

Thanks

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
Second to none...
So far the services you provide are second to none. Keep up the good work.
Andy

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.