简体   繁体   中英

How do I edit a URL of a PHP site using .htaccess

I have a site that directs a user to a php page, after filling out a form, to /form.php?id=whateverID?password=whateverPassword (this is an example). I would like to use .htaccess to show the URL as being form.php.

At the of the day I am looking to count how many users were directed to the form.php pages.

Thanks in advance

Instead of using a GET method, use a POST

<form action='form.php' method='POST'>
...

and to access it in your php use the $_POST variable

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM