在PHP中,想做一个跳转,但如何让其在点了一个按钮之后再跳转呢?
来源:百度知道 编辑:UC知道 时间:2024/06/21 04:54:48
跳转是可以跳转,但是没法往下执行~~~~~
<input type="button" onclick="window.location.href='doSomthing.php?id=$id';" value="按钮">
id为参数,可不存在
doSomthing.php为你指定的跳转文件
加个事件,onclick='window.location.href=""'
用js就可以了
<input type="button" onclick="window.location.href='跳转url';" value="按钮">