when I click on submit button url is:
http://localhost/college/index.php?field=1&exam=ATMA&submit3=%23success
I want to replace this link with:
http://localhost/college/index.php?field=1&exam=ATMA&submit3=#success
How can I do this ?
when I click on submit button url is:
http://localhost/college/index.php?field=1&exam=ATMA&submit3=%23success
I want to replace this link with:
http://localhost/college/index.php?field=1&exam=ATMA&submit3=#success
How can I do this ?
The functions you are looking for are
PHP:
urlencode($string);
urldecode($string);
Javascript:
decodeURIComponent(string);
encodeURIComponent(string);
Try the following decodeURIComponent
:
decodeURIComponent('http://localhost/college/index.php?field=1&exam=ATMA&submit3=%23success')