popup windows in php
I have to echo different message to the user at different times, for example
if ("image/jpeg" == $imagefile_type
or "image/gif" == $imagefile_type) {
// Handle the file...
} else {
echo("<P>Please submit a JPEG or GIF image file.\n");
}
or
}else
{echo "Error adding entered information. \n"
The question, instead of sending an html page back to user with may be couple sentences. I would like to just send him popup windows only while keeping the current page intact. I know it can be done in JavaScripting, I am not sure about PHP.