if i have a txt file that looks like...
$news=this is the news bla bla&
$bio=bla bla bla bla&
$contact=bla bla bla bla&
how can i just replace the text of one of these lines without touching the other lines?
i will be using a form to submit the new data, and the lines in the text file must start with &varname= and end with a &
also, i want to convert any & symbol within the text that is submitted from the form to %26
help is much appreciatied!!!