Jump to content

Stop the script without die(); ?


Imtehbegginer

Recommended Posts

I guess you could potentially set a variable that you could check at specific points in the script to see whether or not that piece should be run. Currently, I am unaware of any function that will do this for you. Someone with more experience may be able to offer more advice.

Yeah,

 

    if (!$haircolour) {
        $err.= "Please provide your email haircolour<br>";
    }

 

and then if you code the output to remain at the same page, it'll stop at every error.

 

Have a look at http://www.chrisredding.com/v4/gen/form/contact.php and try some obvious errors.

 

C

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.