this is an easy one im sure..
when i use an if statement
if (!$_REQUEST['name'])
{
echo " stage 1 error: no name";
exit();
}
if(!$_REQUEST['subject'])
{
echo "stage 2 error: no subject";
exit();
}
if(!$_REQUEST['body'])
{
echo "stage 4 error: no body";
exit();
}
if(!$_REQUEST['phone'])
{
echo "stage 3 error: no phone";
exit();
} else {
require("phpmailer.1.72/class.phpmailer.php");
this all works ok. but obviously the exit command kills the html on the rest of the page.. is there another command i can use that will kill the rst of the script but let the page load till the last </html> tag
cheers
oh yeah and is there a way to make all the if statement into one? something like this?
if (!$_REQUEST['name'] || !$_REQUEST['body']) || !$_REQUEST['another'))
TW