備忘log

그냥.. 자주쓰는 함수들...

[code php]
function error( $text ) {
    echo "<script>\nwindow.alert('".$text."');\nhistory.go(-1);\n</script>";
    exit( );
}

function errormsg( $text ) {
    echo "<script>\nwindow.alert('".$text."');\nhistory.go(-1);\n</script>";
    exit( );
}

function go( $url ) {
    echo "<META HTTP-EQUIV=refresh CONTENT=0;URL=".$url.">";
    exit( );
}

function msg( $text ) {
    echo "<script>\nwindow.alert('".$text."');\n</script>";
}

function gomsg( $text, $url ) {
    echo "<script>\nwindow.alert('".$text."');\n</script>\n<META HTTP-EQUIV=refresh CONTENT=0;URL={$url}>\n";
}

function msgclose( $close ) {
    echo "<script>\nwindow.alert('".$close."');\nclose();\n</script>\n";
    exit( );
}

function msgclose_url( $close, $url ) {
    echo "<script>\nwindow.alert('".$close."');\nwindow.opener.location.href = \"{$url}\";\nwindow.close();\n</script>";
    exit( );
}
[/code]

2008/12/04 01:40 2008/12/04 01:40

trackbacks

trackbacks rss

http://blog.piano000.net/trackback/68


facebook comments


  1. M/D R
    Would love to perpetually get updated outstanding website!

Leave a Comment