0 votes
3.4k views
by (300 points)

Can anyone tell me how to submit registration and login form in PHP?

1 Answer

0 votes
by

Yes, there is a simple way for registration and login, 

First we have to check submit button is pressed or not  like- 

Step 1 -

 if(isset($_REQUEST[''submit']) ){

            your code ...

}

Step 2 - check the field data 

        if(isset($_REQUEST['name'])  && !empty($_REQUEST['name']))  ){

            put your logic accoriding to you ...

       }

      if(isset($_REQUEST['email'])  && !empty($_REQUEST['email']))  ){

            put your logic accoriding to you ...

       }

you can check combine both of field like

       if(!empty($_REQUEST['name'])  && !empty($_REQUEST['email']))  ){

            put your logic accoriding to you ...

       }

For more informtion checkout this link ShortTutorials

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated