I have a PHP echo statement of a session value like this:
<?php echo $userinfo['RenewAgreementAmount'] ;?>
I have a form select element like this:
<select id="Lock" name="Lock">
<option value="1" selected="selected">1 Year</option>
<option value="2">2 Years</option>
<option value="3">3 Years</option>
<option value="4">4 Years</option>
</select>
I'm trying to update the <?php echo $userinfo['RenewAgreementAmount'] ;?> output by taking what the user selects in the select value id Lock with this session value while interacting with the form?
I've tried <?php echo ($userinfo['RenewAgreementAmount'] * #Lock) ;?> with no luck.
What is the easiest way to update this value as the user interacts with the select form input in real time?