Jump to content

End the script?


Imtehbegginer

Recommended Posts

Ideally, the code that handles the login to your page should be in a function, so that you can skip the rest of the code in the function based on a certain condition you can set.

 

function login() {
    // execute login code

    // if there is an error, break out of the function
    return;

    // code down here does not get executed, ever

}

Link to comment
https://forums.phpfreaks.com/topic/76588-end-the-script/#findComment-387868
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.