As many forms as I've used over the years and sending data from one script to another, I'm totally baffled with what is going wrong with this situation...
I have a form in a script that basically just displays a book face as a link to go read the book.
in the script, here is the code...
<form name="product <?php print $product[$prow][$pcol][0]; ?>" action="<?php print $title; ?>" method="POST" target="_blank">
<input type="hidden" name="prod_id" value="<?php print $product[$prow][$pcol][0]; ?>">
<input type="image" name="<?php print $product[$prow][$pcol][0]; ?>" src="images/full_pics/<?php print $product[$prow][$pcol][4]; ?>" width="400" height="400" border="0" alt="<?php print $product[$prow][$pcol][1]; ?>">
</form>
Looking at it from the page source after being rendered it looks like this
<form name="product 32008" action="eDelivery/BusinessDevelopment/HowtoWriteProfitableEmails" method="POST" target="_blank">
<input type="hidden" name="prod_id" value="32008">
<input type="image" name="32008" src="images/full_pics/profitable_emails.png" width="400" height="400" border="0" alt="How to Write Profitable Emails">
</form>
Which should send the $prod_id to the action url
BUT, when it arrives there, $prod_id has no value. the reason I know this is that for whatever reason the book wasn't being displayed, so I tested it by simply printing the value of the variable, and there was no value.
Just to be thorough, here is the print command on the action url
print"<br>prod_id is ".$prod_id;
and what I get is " prod_id is 'blank'" (I stuck in the blank)
So, what is it that I am not seeing that must be obvious?