I have a form on a site which submits to a MySQL database. What I'd like to do is collect information using hidden inputs in the form to submit information contained in PHP $_SERVER
variables to the database. I've already tried to do so like this:
<input type="hidden" value="$_SERVER['REMOTE_ADDR']">
I quickly realized why that didn't work. However, I don't know the correct way to submit information from $_SERVER['REMOTE_ADDR']
,
$_SERVER['REQUEST_TIME']
and other variables into my database.
The main idea is to use these hidden inputs to submit info from the client like IP address and form submission time. Any idea what I need to do?