<script type="text/javascript"> document.getElementById('name').value = "<?php echo $_GET['name'];?>"; </script>