I am trying to pass a variable from a PHP page containing an HTML form, using a hidden field, to another PHP page which then sends an Email comtaining the data passed. All other fields are passed OK, retrieved using the structure
$item = $_REQUEST["description"];
and sent successfully in the Email.
However the hidden field doesn't pass the value of the variable successfully.
The hidden field structure is as below:
<input type="hidden" name="description" value="$description">
The variable $description exists, but of course what is passed to the next page is '$description' rather than it's value. How do I pass the value of the variable rather than it's name to the next page?
I have tried passing it in the url through:
<form method="post" action="http://www.mywebsite...=$description">
but this doesn't appear to work either.