Lyricsride Posted December 24, 2006 Share Posted December 24, 2006 I know that it's not straight forward as in "echo value into value attribute". But is there a function or SOMETHING to solve this issue? Is it utterely impossible?Thanks Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/ Share on other sites More sharing options...
Jessica Posted December 24, 2006 Share Posted December 24, 2006 What? Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/#findComment-147211 Share on other sites More sharing options...
redarrow Posted December 24, 2006 Share Posted December 24, 2006 what do u mean via your title post? Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/#findComment-147213 Share on other sites More sharing options...
Lyricsride Posted December 24, 2006 Author Share Posted December 24, 2006 the concept of having sticky forms, with values that remember the previous input if authentication fails. the usual way of echoing data into the value attribute of html does not work with file fields. Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/#findComment-147340 Share on other sites More sharing options...
pacome Posted December 24, 2006 Share Posted December 24, 2006 I've got this working just fine... it's standard html and I echo the comment if some variable is missing, only the passwords, or the incorrect data misses being printed again<td valign="bottom" width="250px" bgcolor="#FFFFFF" ><textarea class="textarea" name="comentario"><?php echo $coment; ?></textarea></td> Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/#findComment-147342 Share on other sites More sharing options...
pacome Posted December 24, 2006 Share Posted December 24, 2006 and for the rest I use the value='<?php echo $yourvar; ?>' and does the trick too.. Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/#findComment-147344 Share on other sites More sharing options...
Destruction Posted December 24, 2006 Share Posted December 24, 2006 The file field browse button/option is clientside. PHP isn't sent the "local" location of the file on the users computer. So you cannot use PHP to "sticky" a file field.Dest Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/#findComment-147367 Share on other sites More sharing options...
Lyricsride Posted December 26, 2006 Author Share Posted December 26, 2006 Thanks for the explanation Destruction, I've solved the issue by changing the design of the site, but thanks for telling me this, i never knew!Cheers Link to comment https://forums.phpfreaks.com/topic/31747-solved-make-file-fields-sticky-in-forms-how/#findComment-147746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.