remain text field data after window message

Shomioptita

New Member
When the user entered wrong or empty field value and the window message prompts out, how do I retain the data in the text fields that the user had entered after the window message?\[code\]<?php if(empty($value) && in_array($key, $required_fields) === true) {?> <script type="text/javascript"> alert("Fields marked with an asterisk are required"); history.back(); </script><?php } ?>\[/code\]
 
Back
Top