我想知道,假设我在我的应用程序(Html、Javascript、php、css)的网页顶部,当我点击表单中的提交按钮时,它会导航到底部页?
这可以解决吗?
以下是我拥有的代码示例:
<?php
if ($sessionMinus == $_SESSION['initial_count']){
$action = 'thankyou.php';
}elseif($sessionMinus != $_SESSION['initial_count']){
$action = $_SERVER['PHP_SELF'];
}
?>
<form id="QandA" action="<?php echo htmlentities($action); ?>" method="post" onsubmit="return myClickHandler()">
.....//A html table
<p><input id="submitBtn" name="submitDetails" type="submit" value="Submit Details" /></p>
</form>