I have a very simple application that is used to update a web page through a
form and a set of textboxes. The php script parses the info entered into the textboxes and writes it to a set of files, date.shtml, info.shtml etc. The files are put together into a web page via includes, e.g.,
<!-- include info.shtml -->
The script is very simple, a set of write statements, e.g.,
if(!$info_fp=fopen("info.shtml","w")){
echo("Couldn't open file to write the info");
}else{
fwrite($info_fp, $info);
}
The problem I'm having is when a link is entered into thetextarea, e.g.,
<a href="mailto:me@myemail.com">Mail me</a>.
The link is being written to the info.shtml file as
<a href=\"mailto:me@myemail.com\=">Mail me</a>
which is then being interpreted as
<a href="base URl/mailto:blah blah">mail me</a>
which obviously doesn't work properly in the webpage.
Thanks bunches
B