|
import win.ui;
/*DSG{{*/
var winform = win.form( bottom=143;scroll=1;right=183;text="aardio Form" )
winform.add(
button2={ bottom=119;right=75;left=15;top=86;font=LOGFONT( name="宋体";h=-12 );z=6;text="刷新";cls="button" };
edit={ bottom=64;right=160;left=88;top=48;font=LOGFONT( name="宋体";h=-12 );z=3;text="";edge=1;cls="edit" };
button={ bottom=118;text="注册";left=101;top=85;font=LOGFONT( name="宋体";h=-12 );z=1;right=161;cls="button" };
picturebox={ bottom=72;right=96;left=16;text="picturebox";top=40;font=LOGFONT( name="宋体";h=-12 );transparent=1;z=2;cls="picturebox" };
static2={ text="帐号";bottom=24;right=72;left=24;top=8;font=LOGFONT( name="宋体";h=-12 );z=5;transparent=1;cls="static" };
edit2={ bottom=24;right=168;left=88;top=8;font=LOGFONT( name="宋体";h=-12 );z=4;text="";edge=1;cls="edit" }
)
/*}}*/
winform.show();
import inet.whttp;
whttp=inet.whttp()
winform.button2.oncommand = function(id,event){
whttp.beginRequest("http://www.icodo.com/inc/vdimgck.php","GET",);
whttp.send();
cookie=whttp.readHeader("Set-Cookie");
winform.picturebox.image =whttp.read()
whttp.endRequest();
}
winform.button.oncommand = function(id,event){
var postData = "forward=?user=&member_type=1&username="+winform.edit2.text+"&pass1=199241&pass2=199241&email=sdfdssafgd%40qq.com&code="+winform.edit.text+"&xieyi=1";
var html= whttp.post("http://www.icodo.com/login/reg_save.php",postData,"Cookie:"+ cookie);
if(string.find(html,"恭喜你")){
win.msgbox("注册成功了","aardio");
}
elseif(string.find(html,"对不起")){
win.msgbox("验证码错了","aardio");
}
else{
win.msgbox(html,"其他错误");
}
}
win.loopMessage();
return winform;
原帖地址
http://aardio.com/thread-307-1-1.html
|
|