晕。onclick这种是客户端的JS代码。怎么可能调用PHP的函数
有一个办法可以实现你想要的功能
<iframe width=0 height=0 id='hidden'>
</iframe>
<input type='button' value='删除' onclick="document.frames.hidden.location.href='del.php?pin=234'">
------------------------------------
del.phpif( mysql_connect("localhost","wlxt","wlxt") )
{
$link_ID = mysql_connect("localhost","wlxt","wlxt");
mysql_select_db( "wlxt1");
echo( "connect success!");
mysql_query ( "delete from user where pin='".$_GET['pin]."'",$link_ID);
mysql_close($link_ID);
}
有一个办法可以实现你想要的功能
<iframe width=0 height=0 id='hidden'>
</iframe>
<input type='button' value='删除' onclick="document.frames.hidden.location.href='del.php?pin=234'">
------------------------------------
del.phpif( mysql_connect("localhost","wlxt","wlxt") )
{
$link_ID = mysql_connect("localhost","wlxt","wlxt");
mysql_select_db( "wlxt1");
echo( "connect success!");
mysql_query ( "delete from user where pin='".$_GET['pin]."'",$link_ID);
mysql_close($link_ID);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货