This is a new problem for me but hopefully not for someone in the rank and file.
I use the code below to test for a duplicate part name entered in a form. The part name also serves as a folder name. When I set the condition as true, i.e. it is a duplicate name, the screen just goes dead black instead of printing out the error messages. I have tried it with both 'die' and 'exit' with the same results. When it is not true, i.e. it is not a duplicate, the script runs fine.
here is the relevant code sections:
echo 'The part name you have chosen is already in use. please choose a different name.';
die("You have a duplicate folder name. Change name and start over!");