Jump to content

Recommended Posts

Hi:

 

I am practicing my PHP study by building a Web site that has a Web page with a membership registration form.

 

I have downloaded a free scripts for this.

 

I have followed the instructions very well, but I do not know why nothing is working.

 

According to the lesson, after a user presses the "Submit" button, a "thank you " message will appear, and my database table has a new record.

 

I tested it by filling out a registration form in my page, and after I pressed the  "Submit" button, nothing happened but the home page of my Web host showed.

 

I do not know what I did wrong.

 

Please help me because I am very interested in this.

 

Your assistance will be appreciated.

 

If you want you can contact me at palmspringsasian@aol.com.

 

Thank you very much in advance.

 

Link to comment
https://forums.phpfreaks.com/topic/246167-php-membership-registration-form/
Share on other sites

 

Hi:

 

Below is what I have downloaded from a Web site.

 

Creating a registration form using PHP

in PHP Form

Creating a membership based site seems like a daunting task at first. If you ever wanted to do this by yourself, then just gave up when you started to think how you are going to put it together using your PHP skills, then this article is for you. We are going to walk you through every aspect of creating a membership based site, with a secure members area protected by password.

The whole process consists of two big parts: user registration and user authentication. In the first part, we are going to cover creation of the registration form and storing the data in a MySQL database. In the second part, we will create the login form and use it to allow users access in the secure area.

 

Download the code

You can download the whole source code for the registration/login system from the link below:

RegistrationForm.zip

Configuration & Upload

 

The ReadMe.txt file contains detailed instructions.

Open the source\include\membersite_config.php file in a text editor and update the configuration. (Database login, your website's name, your email address etc).

Upload the whole directory contents. Test the register.php by submitting the form.

The folder: RegistrationForm.zip contains a PHP file named membersite_config.

 

The instruction is that I have to modify some fields in that file.

 

I have done this as shown below:

 

<?PHP

require_once("./include/fg_membersite.php");

 

$fgmembersite = new FGMembersite();

 

//Provide your site name here

$fgmembersite->SetWebsiteName('silerhoangwebsite.netai.net');

 

//Provide the email address where you want to get notifications

$fgmembersite->SetAdminEmail('palmspringsasian@aol.com');

 

//Provide your database login details here:

//hostname, user name, password, database name and table name

//note that the script will create the table (for example, fgusers in this case)

//by itself on submitting register.php for the first time

$fgmembersite->InitDB(/*hostname*/'mysql13.000webhost.com',

                      /*username*/'a2433874_testing',

                      /*password*/'*******',

                      /*database name*/'a2433874_testing',

                      /*table name*/'fgusers6');

 

//For better security. Get a random string from this link: http://tinyurl.com/randstr

// and put it here

$fgmembersite->SetRandomKey('qSRcVS6DrTzrPvr');

 

?>

 

I have also downloaded the code for a sample registration form as suggested.

 

Right now, I am still practicing. So, my Web site has only one page with the mentioned

 

sample registration form.

 

Below is the link:

 

http://silerhoangwebsite.netai.net/regitration.htm

 

I have tested it by filling out the form in my page, nothing happened but the home page

 

of my free Web host that supports PHP and MySQL showed.

 

I really do not know what I did wrong.

 

That is why I am asking you for help.

 

Your assistance will be appreciated.

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.