Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

PHP/HTML Help

2»

Comments

  • Closed Accounts Posts: 112 ✭✭gahim


    Well I have updated the site but something is wrong with spiralhosting and its taking a while to update, I have tried clearing cache and refreshing and the code editor shows the updated codes.


  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    You should open a support message with your hosting company. They may have a problem in their end and should help you solve your problem.


  • Closed Accounts Posts: 112 ✭✭gahim


    HandWS LTD wrote: »
    You should open a support message with your hosting company. They may have a problem in their end and should help you solve your problem.

    Someone from my hosting company has subscribed to this form so hopefully the message will go out :)


  • Closed Accounts Posts: 270 ✭✭CoNfOuNd


    Sorry. I'm only just checking back on this now.

    I just wanted to clarify that there is/was no problem with our servers! $_POST is obviously used on many sites on our servers, and the test code I provided earlier (post 12 on this thread) works fine on this account. The problem is with the coding.


  • Closed Accounts Posts: 112 ✭✭gahim


    I am having someone look at it with me


  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    Have you tried debugging your php script to find the exact error within your code? This can help in many cases if you are lost and if it is a php error or not.

    However, after trying to register, it now seems like "/start/register.php" file is not in the correct location on your server. Upload this before you continue.

    If you can post all the code associated with what you have now in the login section then we can have a clearer idea on how to help you. This includes your <?php ... ?> code.


  • Closed Accounts Posts: 112 ✭✭gahim


    Current pages I have is

    beta.gahim.com/log.php
    beta.gahim.com/login.php
    beta.gahim.com - (Has a login code on it)
    beta.gahim.com/start - Signup Form
    beta.gahim.com/start/register.php - Blank page wondering what to put on it

    :confused::confused::confused::confused:


  • Closed Accounts Posts: 112 ✭✭gahim


    Hi,
    I have created the registration form fields do you know how to continue?


  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    gahim wrote: »
    Current pages I have is

    beta.gahim.com/log.php
    beta.gahim.com/login.php
    beta.gahim.com - (Has a login code on it)
    beta.gahim.com/start - Signup Form
    beta.gahim.com/start/register.php - Blank page wondering what to put on it

    :confused::confused::confused::confused:

    beta.gahim.com/log.php redirects to beta.gahim.com/login.php so its the same page.

    As your users are registering via the beta.gahim.com/start page there is no need for beta.gahim.com/start/register.php. Unless you want to collect more information from your users.

    Where are you posting these information to? Are you using a database? In my opinion, what you are trying to do is POST all the information via your php code to beta.gahim.com/start/register.php file and then add this to the database (this is if you are not collecting more information from your users). You need to use the $_POST code inside your beta.gahim.com/start/register.php file to collect that information. This is the right way to do it. So, you will need to work on your beta.gahim.com/start/register.php file to collect the required information and store it in your database.

    Just checked your website.....is the code in your register.php closed:
    <?xml version="1.0" encoding="UTF-8"
    should be:
    <?xml version="1.0" encoding="UTF-8" ?>


  • Advertisement
  • Closed Accounts Posts: 112 ✭✭gahim


    Hi,
    I have attached how to signup form works (or how it's suppost to work :))


  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    It is my guess that this whole thread was based on getting the POST variables from the home page login ... straight into the sign up page so users don't have to edit them again. This has confused most people.

    First of all.....you don't have a registration button on your home page. Only a sign in button (called continue) for users who have already signed up. I understand that you are trying to send the information from the home page to the sign up page. Its best not to do that. Just add a register button below it. So if you are going to do this, the next para is what needs to be done.

    Within that image, POST should not be used in between the login and the sign up page (you only want your registered users to sign in straight away), sign up page is only for users who have not yet registered with you. POST should only be used in the sign up page and after it to collect that information (and storing this information in the database will also be on the same page too).

    Do you understand this?


  • Closed Accounts Posts: 112 ✭✭gahim


    The big continue button is for people signing up email and password then continue...

    The login form is at the top...

    beta.gahim.com


  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    Oh....right. Users will get confused as they will think "i don't have a password with them so where do i sign up?". Sign up is nowhere to be seen. Maybe get rid of the email and password fields altogether and just have the continue button or something that'll go straight to the sign up page. Make it more user friendly.


  • Closed Accounts Posts: 112 ✭✭gahim


    Ok, thanks for your advice, do you know how I can make the signup form (beta.gahim.com/start/index.php) send the information to my gahimcom_members database?

    When I look on Google everything confuses me :confused::confused::confused:


  • Closed Accounts Posts: 263 ✭✭HandWS LTD


    :pac: ... sounds like you are new to web development. You can only learn by doing the work yourself.

    First of all, you will need to add the php code to POST all the information on your register.php file you have now. Have you created tables for your database? You have already created the DB name.

    This is a simple tutorial that should be helpful. http://php.about.com/od/finishedphp1/ss/php_login_code.htm

    You will need to add the rest of the fields in your start/index.php to the database and the codes in the tutorial above.


  • Advertisement
  • Closed Accounts Posts: 112 ✭✭gahim


    I have added the tables, I have attached a screenshot

    How do I link the registration form to my database I have already created the login form and you can see all the codes in one of my previous posts.


  • Closed Accounts Posts: 112 ✭✭gahim


    I have done all the instructions on this page http://www.howtodothings.com/computers-internet/how-to-make-a-login-system-for-your-website in addition added fields in the database... Now I need to know how to do a registration form...


  • Registered Users, Registered Users 2 Posts: 8,584 ✭✭✭TouchingVirus


    gahim wrote: »
    I have done all the instructions on this page http://www.howtodothings.com/computers-internet/how-to-make-a-login-system-for-your-website in addition added fields in the database... Now I need to know how to do a registration form...

    Find yourself another tutorial. Again, you're just not listening. This isn't a place you come, ask a question, we make all the effort and you sit back & relax.

    Make an attempt


Advertisement