ozkanb Posted August 3, 2009 Share Posted August 3, 2009 hi, i have a form now with some textfields and inputs of type "file" persistence of textfields is simple: <input type="text" name="nameInput" value="<?php if(isset($_REQUEST['nameInput'])){echo $_REQUEST['nameInput'];}?>"/> but what about : <input type="file" name="nameInput" value="...."/> thx in advance PS: really nice site, a lot of useful information ... Link to comment https://forums.phpfreaks.com/topic/168665-persistence-of/ Share on other sites More sharing options...
watsmyname Posted August 3, 2009 Share Posted August 3, 2009 hi, i have a form now with some textfields and inputs of type "file" persistence of textfields is simple: <input type="text" name="nameInput" value="<?php if(isset($_REQUEST['nameInput'])){echo $_REQUEST['nameInput'];}?>"/> but what about : <input type="file" name="nameInput" value="...."/> thanks in advance PS: really nice site, a lot of useful information ... Sorry man you cant do this with file field, if you want to update something then, put hidden field and populate its value as you have done in text field. Link to comment https://forums.phpfreaks.com/topic/168665-persistence-of/#findComment-889744 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.