0

i have a URL like:

http://localhost/myproject/contact-us#feedback

i want to store full URL in a variable including #feedback.

How to do this???

Jay
  • 3,353
  • 5
  • 25
  • 34

2 Answers2

0

You could read the URL including #feedback with JavaScript and store it in your database via Ajax.

Vince
  • 1,517
  • 2
  • 18
  • 43
-1

Got the answer:

fetching the URL using JS like:

var url = location.href;

Thank you every one for suggestions :)

Jay
  • 3,353
  • 5
  • 25
  • 34