<?php
if(isset($_POST['chgPwd']))
{
$oldpwd=$_POST["txtOldPassword"];
$newpwd=$_POST["txtNewPassword"];
$cnewpwd=$_POST["txtConfirmNewPassword"];
//did stuff to get in the text fields
$oldpass = oci_result($new1,"OLDPASS");
if($oldpwd!=$oldpass)
{
$msg = "The old password does not match with the one in the records";
header("Location:ErrorPage.php?abc=".$msg);
}
}
?>
這裏我的問題是,當我將我的頁面重定向到ErrorPage.php時,我能夠在URL中看到整個頁面,我不希望它。有沒有辦法解決。我正在考慮綁定會話,但我無法做到正確。如果有任何問題,請給我看看正確的方法嗎?如何防止在URL中顯示變量?
「整個頁面」?你的意思是「整個文本」? –
http://www.project.com/shafiq/ErrorPage.php?abc=The%20old%20password%20does%20not%20match%20with%20the%20one%20in%20the%20records 是的,我的意思是整個文本在上面的URL中提到的URL – shafiqsnss