新手---需要个wedserver实例 新手---需要个wedserver实例 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 login.php<form action="index.php" method="post">user:<input name="user" type="text" />pwd:<input name="pwd" type="password" /><input type="submit" value="check" /></form>index.php<?php$user=$_POST['user'];$pwd=$_POST['pwd']; include '../lib/nusoap.php'; //$client = new nusoap_client('http://localhost/webs1/demo2/2/server.php?wsdl',true); $client = new nusoap_client('http://localhost/webs1/demo2/2/server.php?wsdl',true); $return = $client->call('checkLogin',array('user'=>$user,'pwd'=>$pwd,"check"=>'false')); echo $return;?>server.php<?php include ('../lib/nusoap.php'); /* $server = new soap_server(); $server->configureWSDL('myBccd'); $server->register('getBccd',array('user'=>'xsd:string','pwd'=>'xsd:string'),array('return'=>'xsd:string')); function getBccd($user,$pwd){ return '用户名: '.$user. ', 密码:'.$pwd.''; } $server->service($HTTP_RAW_POST_DATA); *///add by leilang function checkLogin($user,$pwd,$check){ define(USER,'admin'); define(PWD,'123456'); if(USER==$user&&PWD==$pwd) { return 'user:'.$user.',pwd:'.$pwd.'check '.$check.'!'; } else { return 'user:'.$user.',pwd:'.$pwd.'check fail!'; }} $login = new soap_server(); $login->configureWSDL('checkLogin'); $login->register('checkLogin',array('user'=>'xsd:string','pwd'=>'xsd:string','check'=>'xsd:string'),array('return'=>'xsd:string')); $login->service($HTTP_RAW_POST_DATA); ?> 谁有PHP+TXT 和 PHP+XML做的留言程序 PHP图片显示问题,很简单,帮解决一下 请大家看我写的这个函数对不对 kxpaser类中的乱码问题,在线等,马上给分,谢谢 求助:怎样在PHP服务器端获取已经由解析器解析成的HTML代码 关于树的问题 帮忙!急用!请写个每行输3个数据??输完数据库为止! 在window 2000 为什么连 MYSQL不上呢,应该怎样设置 ,急,帮帮忙 PHP實現購物籃!!!! 字符连接跳转地址时,中间有空格如何处理。求教了,谢谢 高手请指导 表单复选框的 菜鸟不甚感激 smarty的问题
<form action="index.php" method="post">
user:<input name="user" type="text" />
pwd:<input name="pwd" type="password" />
<input type="submit" value="check" />
</form>
index.php
<?php
$user=$_POST['user'];
$pwd=$_POST['pwd'];
include '../lib/nusoap.php';
//$client = new nusoap_client('http://localhost/webs1/demo2/2/server.php?wsdl',true);
$client = new nusoap_client('http://localhost/webs1/demo2/2/server.php?wsdl',true);
$return = $client->call('checkLogin',array('user'=>$user,'pwd'=>$pwd,"check"=>'false'));
echo $return;
?>
server.php
<?php
include ('../lib/nusoap.php');
/*
$server = new soap_server();
$server->configureWSDL('myBccd');
$server->register('getBccd',array('user'=>'xsd:string','pwd'=>'xsd:string'),array('return'=>'xsd:string'));
function getBccd($user,$pwd){
return '用户名: '.$user. ', 密码:'.$pwd.'';
}
$server->service($HTTP_RAW_POST_DATA);
*/
//add by leilang function checkLogin($user,$pwd,$check)
{
define(USER,'admin');
define(PWD,'123456'); if(USER==$user&&PWD==$pwd)
{
return 'user:'.$user.',pwd:'.$pwd.'check '.$check.'!';
}
else
{
return 'user:'.$user.',pwd:'.$pwd.'check fail!';
}
}
$login = new soap_server();
$login->configureWSDL('checkLogin');
$login->register('checkLogin',array('user'=>'xsd:string','pwd'=>'xsd:string','check'=>'xsd:string'),array('return'=>'xsd:string'));
$login->service($HTTP_RAW_POST_DATA);
?>