Populating a PHP variable from a form post
<p>I am trying to pass over a value from an HTML form.  Basically I have 1 text box in the form, and the form posts to itself.  I am using this to check to see if a coupon code is valid.  If I enter a valid coupon in to the text field and hit the enter key on keyboard, it calls the page (posts to same page), passes over the value in the text box but doesn’t apply the discount.   however if I enter in a valid coupon code but instead of hitting the enter key on the keyboard and hit the submit button it calls the page and passes over the value and coupon code gets set</p>

<p>I have used some debugging tools to capture what is being sent over, and it is sending the value over through a POST.</p>

<p>THIS ONLY SEEMS TO BE AN ISSUE IN IE.  FIREFOX, CHROME AND OTHER BROWSERS WORK FINE.  I TRIED BOTH IE8 AND IE7 AND NEITHER WOULD WORK.</p>

<p>I would think that it should still apply the discount regardless if I hit the enter key or use the submit button.  Does anyone have any ideas what I can change to correct this and make this work in IE?  The page us coded in HTML and PHP.</p>
