This is the PHP code:
$html=<<<eod
<div>Your current account balance is <span style="color:red">$$balance</span></div><br/>
<form id="digitalchange" action="digitalchange.php?" action="post">
<input type="hidden" name="tid" value=$announcementid />
<table rules=all FRAME=BOX><tr><td>Balance:<span class="price">$balance</span></td><td>Current Shortfall:$shortfall</td>
<td>Unit Price:<span class="price">$$unitprice</span></td></tr>
<tr><td>Add Balance:$<input type="text" id="addbalance" name="addbalance" size="5" /></td>
<td>Add Shortall:<input type="text" id="addquota" name="addquota" size="4" /></td><td></td></tr>
<tr><td></td><td>Reduce Shortfall:<input type="text" id="reducequota" name="reducequota" size="4" /></td><td></td></tr></table>
Please click Confirm only once.
<input type="submit" value="Confirm" /></form>
<hr>
eod;
echo $html;
Below are the first two lines in digitalchange.php:
$addbalance=$_POST['addbalance'];
echo "What is wrong".$addblance;
Outputs:
What is wrong
digitalchange.php simply can not get the value of addbalance,I tried $_REQUEST, but still failed. The inputbox of addbalance is not empty. But it seems that the values of the form of digitalchange can not be passed on to digitalchange.php. What's wrong?