Let say that we have a variety of fancy html forms that accept input and capture the data either by sending an email or saving in a database. The client really likes the form layouts and would like to review the data by displaying the saved data at a later date using the original form layout.
Let's say that at a later date we have managed to pass the results back to the form and have them available as memory variables.
It there a php routine that would identify the all the form elements, names and values such as <input type ="radio" name="radio1" value="1"> and insert php code such as <?php if (isset(radio1) and $radio1 == '1') echo ' checked'; ?> inside of each input tag in the entire form.
Then we could use modified versions of different html forms to redisplay the data - that's the idea anyway. Any idea where to start or if anyone has already done this?
Thanks
Dave
Let's say that at a later date we have managed to pass the results back to the form and have them available as memory variables.
It there a php routine that would identify the all the form elements, names and values such as <input type ="radio" name="radio1" value="1"> and insert php code such as <?php if (isset(radio1) and $radio1 == '1') echo ' checked'; ?> inside of each input tag in the entire form.
Then we could use modified versions of different html forms to redisplay the data - that's the idea anyway. Any idea where to start or if anyone has already done this?
Thanks
Dave
Comment