For hidden fields, can i use a field of the type
\"/>
an
You absolutely can, I use this approach a lot w/ both JavaScript and PHP.
Field definition:
Access w/ PHP:
$_GET['foo'] or $_POST['foo']
Also: Don't forget to sanitize your inputs if they are going into a database. Feel free to use my routine: https://github.com/niczak/PHP-Sanitize-Post/blob/master/sanitize.php
Cheers!