You have to use javascript, unless you want to make some dhtml windows, but I don't think you are ready for that.
popup is a javascript alert.
you can write a javascript function to the browser with PHP.
<script language=javascript>
<?
$saysomething="something to say";
echo "alert('$saysomething')";
?>
</script>