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,293
  • 5
  • 24
  • 34

2 Answers2

0

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

Vince
  • 1,509
  • 2
  • 17
  • 42
-1

Got the answer:

fetching the URL using JS like:

var url = location.href;

Thank you every one for suggestions :)

Jay
  • 3,293
  • 5
  • 24
  • 34