whelpton Posted February 21, 2009 Share Posted February 21, 2009 As an addon to a previous topic I started about echoing file contents in a text box. I am currently using the code: <input name="save" type="text" id="save" value="<?php include"/home/alport/public_html/".$_SESSION['s_username']."/text/name.txt" ?>" /> To display the contents of name.txt in a form field. When I submit the form, it changes whatever is in name.txt, but when I come back to the page the old content is still visable in the field. Ive tried using alt+f5 to refresh the page, but nothing seems to work. Is there a php method to ignore any cache and load the file afresh? Link to comment https://forums.phpfreaks.com/topic/146265-updating-fields/ Share on other sites More sharing options...
Cal Posted February 21, 2009 Share Posted February 21, 2009 Ive tried using alt+f5 to refresh the page, but nothing seems to work. Do you mean, it didn't refresh? Just press f5. Are you sure it's actually changing something in the file? Link to comment https://forums.phpfreaks.com/topic/146265-updating-fields/#findComment-767887 Share on other sites More sharing options...
whelpton Posted February 21, 2009 Author Share Posted February 21, 2009 Do you mean, it didn't refresh? Just press f5. The page itself refreshes, the content in the form does not. And I am certain that the content is changeing Link to comment https://forums.phpfreaks.com/topic/146265-updating-fields/#findComment-767891 Share on other sites More sharing options...
Cal Posted February 21, 2009 Share Posted February 21, 2009 Is it constantly there, even if you go to another website? Link to comment https://forums.phpfreaks.com/topic/146265-updating-fields/#findComment-767893 Share on other sites More sharing options...
whelpton Posted February 22, 2009 Author Share Posted February 22, 2009 Yes it is, even after a few hours, the same content still appears Link to comment https://forums.phpfreaks.com/topic/146265-updating-fields/#findComment-768260 Share on other sites More sharing options...
Q695 Posted February 22, 2009 Share Posted February 22, 2009 Are you running update on the top of the page after you load the data needed? try this: http://us2.php.net/function.mysql-real-escape-string when you're loading data in the query, and it should work a lot better. Link to comment https://forums.phpfreaks.com/topic/146265-updating-fields/#findComment-768313 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.