Home > php教程 > php手册 > php页面 点击按钮执行更新操作

php页面 点击按钮执行更新操作

WBOY
Release: 2016-06-06 19:41:43
Original
1962 people have browsed it

代码如下:此页面名称为updateScoreNew.php,点击按钮后获得id和score,然后执行更新数据库操作,不知道怎么写,点击按钮怎么都不调用方法,愁死了都。。。 html head ?php if(isset($_POST['update'])) { echo "hello"; } ? /head body form name="form1" m

代码如下:此页面名称为updateScoreNew.php,点击按钮后获得id和score,然后执行更新数据库操作,不知道怎么写,点击按钮怎么都不调用方法,愁死了都。。。



if(isset($_POST['update']))
{
echo "hello";
}
?>


id:
score:



mysql_query("SET CHARACTER SET utf8");
$client=new SoapClient(null,array('location'=>"http://192.168.0.102:7000/updateNew.php",'uri'=>"http://192.168.0.102:7000/"));
$str= $client->SelectNew();
echo $str;
?>  //这段代码只是查询功能

更新数据库方法也在updateNew.php页面中。

请问高手怎么解决呢?

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template