Is this a nice way to preserve a field value when an HTML form submitted?

fez6666

New Member
I have a form with two submit buttons.The user fills field-A and hits submit.Done that, some input fields will be filled with data.After that first submission, the value on the field-A should not disappear.How can we preserve this value after the first submission?Should we, on the field-A value attribute, place:\[code\]value="http://stackoverflow.com/questions/3617742/<?php echo isset($_POST['fieldA'])) ? $_POST['fieldA'] : ''; ?>"\[/code\] ?The form submits to self.Update - Additional details:This is a form that will have two submit buttons on the same page (sort of speak).Submit Button A - Will grab some data based on a input field, and fill the other input fields on that form.Submit Button B - Once the form is filled, it will use all that data to do another submission.This is a very simple case, no frameworks are in place here. I do have, however, some sort of MVP structure here.Thanks in advance,MEM
 
Back
Top