I can read an html file ok, but I cannot write the same file back.
This is the file that I read.
This the file that I write.
<html>
<form name="form2" method="post" action="process form.php">
<SELECT NAME="<?echo "$dl[1] $dl[2]"?>_District # <?echo "$dl[0]"?> <?echo "$dl[3]"?>">
<OPTION value="<?echo "$ht[0] $ht[1]"?>" SELECTED><?echo "$ht[0] $ht[1]"?></OPTION></select></td>
<center><textarea name="text" align=middle rows=5 cols=60></textarea>add any comments<<
<center><input type="submit" value="Click Here To Send Form"/>
</html>
I tried the following code but could not make it work.
htmlspecialchars()
htmlentities()
html_entity_decode ()
How can I write the same code back to the same file??
Thanks
Clint Mason