蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 应用编程


    

蓝森林 http://www.lslnet.com 2006年6月6日 10:18


cgi中sscanf的用法!!

我从网页里得到
username=huza&password=746830&datetime=1&Submit=%CC%E1%BD%BB
我用下面的语句想提取username,password和datetime
char username[10]="aaa";
        char password[12]="123456";
        char   datetime;

sscanf(data,"username=%[^&]&password=%[^&]&datetime=%[^&]&",
username,password,datetime)

但是现在老是提示只提取了2个参数,不知道为什么
我怀疑是sscanf的用法有问题,datetime%[^&]&的问题...
请高手指教!!!...

cgi中sscanf的用法!!

已解决,我都不知道我怎么解决的
汗.....



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com