I have created an order form and have automatically filled in some of the fields with the current users information that has been stored in the database. However, I realise that people will some times want to order somewhere new and may change the details just for that particular order. at the moment some of form field code is:
<label>Email :</label>
<input type="text" value="<?php echo $info[email]?>" name="email" id="email">
Is there a way for me to clear the value of a field when I am echoing the value?
I know how to clear a form normally using javascript and reset() function on the form with button, but obviously that will only clear the values of the fields that the user has entered themselves not the ones output by PHP code. Any nudge in the right direction would be appreciated :).