codice:
function conferma($sms){ 
echo "<script>if confirm(\"attenzione: $sms\") history.go(-1);</script>"; 
}