palmspringsasian Posted September 1, 2011 Share Posted September 1, 2011 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. Quote Link to comment Share on other sites More sharing options...
WebStyles Posted September 1, 2011 Share Posted September 1, 2011 We cannot guess what's wrong without seeing what you've done. please post your code. Quote Link to comment Share on other sites More sharing options...
the182guy Posted September 1, 2011 Share Posted September 1, 2011 Also post any errors you're getting. Quote Link to comment Share on other sites More sharing options...
trq Posted September 1, 2011 Share Posted September 1, 2011 Without code and a description of your specific problem your post is useless. Quote Link to comment Share on other sites More sharing options...
flappy_warbucks Posted September 1, 2011 Share Posted September 1, 2011 Without code and a description of your specific problem your post is useless. Chocolate Tea Pot springs to mind. Quote Link to comment Share on other sites More sharing options...
palmspringsasian Posted September 3, 2011 Author Share Posted September 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
funstein Posted September 8, 2011 Share Posted September 8, 2011 the thing is, it gets a 404 error from your host. Which means you typed one of the redirections or the form actions wrong. Quote Link to comment Share on other sites More sharing options...
trq Posted September 8, 2011 Share Posted September 8, 2011 I am practicing my PHP study by building a Web site that has a Web page with a membership registration form. Downloading code from a website is not programming. I suggest you start by learning the language. Quote Link to comment 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.