[英]is there a way to hide or encode url path?
我正在使用 php $_GET 從 url 路徑獲取數據,但我希望它在完成使用后隱藏或編碼 url 路徑。
example: http://10.1.6.8/?no=CN%20-%20005 and after it finish running it will turn url into http://10.1.6.8/QAIOFANGQNIOGND or http://10.1.6.8/ or something that沒有直接指向 url 路徑。 那可能嗎?
EDIT 1 i can't use $_POST because i have to make url into QR Code and after scanning it i want the url path to hide or decode EDIT 2 I manage to change url path name by using .htaccess but $_GET value still appear
您可能希望改為發出POST 請求,這將隱藏 URL 中的所有參數。 您可以使用 forms 通過添加method="POST"
而不是"GET"
來做到這一點。
不幸的是,您的問題並沒有真正指定您的用例。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.