Good day.
Part of my website has a registration page. I want to include a hidden input field that captures the screen resolution of the visitor and then store that value in my DBase. The javaScript code is as follows:
<script language="javascript">
document.write ((screen.width) + ' by ' + (screen.height))</script>
The problem I'm having is that on screen it will display my resolution 1600x1200 but when I submit the form, it stores the actual javaScript and not the value.
What am I doing wrong?
Many thanks
William.
Part of my website has a registration page. I want to include a hidden input field that captures the screen resolution of the visitor and then store that value in my DBase. The javaScript code is as follows:
<script language="javascript">
document.write ((screen.width) + ' by ' + (screen.height))</script>
The problem I'm having is that on screen it will display my resolution 1600x1200 but when I submit the form, it stores the actual javaScript and not the value.
What am I doing wrong?
Many thanks
William.