title: PHP Get Current Input Value and New Submitted Value
body: <p>I've got a profile page that shows a users current account number in an input field. The user can change this account number and submit the form to update the database with their new account number.</p>
  
  <p>What I need to do is get the initial account number, as well as the new submitted account number so I can use them in another script that runs on the same page.</p>
  
  <pre><code>$user = Am_Di::getInstance()-&gt;auth-&gt;getUser();
  
  $oldnum = $user-&gt;accountnumber;
  $newnum = $_GET['accountnumber'];
  
  $client2 = $api-&gt;findClient( mlApi::LICENSE_ACCOUNT, $oldnum );
  
  
  $client = array( 'account_no' =&gt; $newnum, 'real_demo' =&gt; '1', 'comment' =&gt; 'test2' );
  
  $api-&gt;updateClient( mlApi::LICENSE_ACCOUNT, $client2[_index], $client );
  </code></pre>