Arsench Posted March 15, 2009 Share Posted March 15, 2009 Hello, Is it possible to write a php code , that after page load file input box will be already selected like c:\test.txt without clicking on brows and select file ? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/149522-file-input-box/ Share on other sites More sharing options...
fesan Posted March 15, 2009 Share Posted March 15, 2009 You can add the value="test.txt" parameter to your form field... <input type="text" name="test" id="test" value="test.txt" /> with a variable that sets the name it will belike this: <input type="text" name="test" id="test" value="<?PHP echo $variable ?> "> Link to comment https://forums.phpfreaks.com/topic/149522-file-input-box/#findComment-785253 Share on other sites More sharing options...
PFMaBiSmAd Posted March 15, 2009 Share Posted March 15, 2009 http://www.phpfreaks.com/forums/index.php/topic,243058.msg1134994.html#msg1134994 Link to comment https://forums.phpfreaks.com/topic/149522-file-input-box/#findComment-785257 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.