How do i set an inital value to a field which is a file.. ie <input name="attach1" value="testest" id="attach1" type=file size=30> doesnt work as testest doesnt show any ideas?
you could try an onload function to set the value of it <script language="javascript"> function FillFields(){ document.getElementById('attach1').value="C:\whatever.txt" } </script> <body onload="FillFields()"> Code (markup):