Hi there,
I have a button to a feedback form on every page on my site. The problem is that if users make a comment about a page, I can't tell what page they're talking about.
I would like to add a hidden form field on my feedback form where the value is the url of the previous page (therefore I'll know what page they've come from!). Does anyone know how to do this? I tried this:
...but this doesn't work, and being a wally, I'm probably on completely the wrong track!
Many thanks,
Katie
I have a button to a feedback form on every page on my site. The problem is that if users make a comment about a page, I can't tell what page they're talking about.
I would like to add a hidden form field on my feedback form where the value is the url of the previous page (therefore I'll know what page they've come from!). Does anyone know how to do this? I tried this:
Code:
<input type="hidden" name="q5" id="PageURL" onsubmit="document.getElementById('PageURL').value = history.go(-1);">
...but this doesn't work, and being a wally, I'm probably on completely the wrong track!
Many thanks,
Katie