I have solved it myself. Now its time to share that knowledge I discovered to this forum.
My problem was that the input box does not seem to refresh its value displayed even if I used all sorts of refreshing solutions (Expiration WML tags, Refresh WML tags, etc.) and even if the variable value was already changed on page load.
Here's the analysis:
WML is a very limited implementation. It uses very little memory. I have observed that the input boxes just reloads the same values whenever the page is revisited. The input box is used like this:
<input type="text" name="somebox" value="<?echo $variable;?>">
using PHP. $variable here, no matter how many times value was changed, it does not reflect in the input box. This is because WML 1.1 browsers do not update the inputbox value when it encounters the same input box name, and only loads the previous value in previous visit to this page.
So when the page is revisited, and the browser encounters the input box name:"somebox", it will display the already available value from memory. Hence, it does not seem to refresh.
To solve this, I created a random ID for each input box, everytime the page is visited. Here is what I did:
<?$var="_".rand(1,1000);?>
<input type="text" name="<?echo $var;?>" value="<?echo $variable;?>">
this solved the problem in refreshing actual value found in the Text Input Box.
and to access the variable with WML:
<postfield name="to" value="$(<? echo $var; ?>)"/>
Hope this becomes valuable Information for ALL.