Jump to content

Persistence of <input type="file"...


ozkanb

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.