I have a form which when submitted goes to the url "signup.php?username=xx" where xx is an input field. Instead of this I was wondering if I could get it to go to the following url "signup/xx" where xx is taken from the input field.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Is there a way to play audio on a mobile browser w
Try this:
You need to use Javascript and some type of .htaccess for that. But why don't you use
POST
instead ofGET
?I don't want
singup?username=sawny&password=1234
in my history.EDIT:
I had done something like this:
and then the regexp @zero posted in a .htaccess file.
Include jQuery if not already included
and then add this script