// Just want to see how SAJAX can help. require("Sajax.php"); mysql_connect('localhost', 'wangj2_public', '123'); mysql_select_db('wangj2_public'); function user_exists($user) { if($user == 'jswang') return "1"; else return "0"; } function user_validate($user, $pass) { if($user == 'jswang' && $pass == '123') return 1; else return 0; } function user_set_pass($user, $pass) { //set pass return 1; } $sajax_request_type = "GET"; sajax_init(); sajax_export("user_exists", "user_validate", "user_set_pass"); sajax_handle_client_request(); ?>
上面的地图可以用鼠标拖动,双击可以添加新点 | Hello guest |