Input-filling problem with pre-existing value

I have set up an input element…which is value gets populated from the server-with PHP code:

$address=get_address($_SESSION['valid_user'],$conn);    
<input  value="<?php  echo $address['url'] ?>"  type="text"  'class="text" 
                size="40"  name="wwwaddress">

the problem begins when trying to edit the above input(the data is sent to the server with AJAX…by the way)
The value entered in the input box does not update the value attribute cause it is “taken” from the previous value brought from the server…what can I do in this case?
Updating the values attribute when filling the box and at the same time fetching the the most recent value from the server.

do you mean the value coded into the source code? that one will never change. but if you change the input’s value by typing (new) text into the field. its value changes with that, although that is only “visible” when you inspect the current DOM tree.

thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.