Imad Posted April 30, 2008 Share Posted April 30, 2008 Hi guys, first off, I thank everyone for helping me in previous threads, you've guys helped me increase my PHP knowledge! A big Thanks! Now for the question, I need to update variables from a text box without having it empty the file. For example say I want to update the $w variable value in a file using a text box without it erasing everything else from the file; how can I achieve this? Thanks in advanced, Best Regards. Link to comment https://forums.phpfreaks.com/topic/103610-update-vairables/ Share on other sites More sharing options...
p2grace Posted April 30, 2008 Share Posted April 30, 2008 Either use ajax, or refill in the data after posting it. Link to comment https://forums.phpfreaks.com/topic/103610-update-vairables/#findComment-530544 Share on other sites More sharing options...
Imad Posted April 30, 2008 Author Share Posted April 30, 2008 Either use ajax, or refill in the data after posting it. That's what I currently do, I have it refill the data after updating the vairable values. What an AJAX do for me? Link to comment https://forums.phpfreaks.com/topic/103610-update-vairables/#findComment-530555 Share on other sites More sharing options...
p2grace Posted April 30, 2008 Share Posted April 30, 2008 Ajax would allow you to submit the form without refreshing the page, therefore you wouldn't have to re-populate the data. Link to comment https://forums.phpfreaks.com/topic/103610-update-vairables/#findComment-530591 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.