ahhh. yes, that makes sense.
but for some reason it's not working 🙁
when I add it to my code, and after the form is submitted ($source in from a form), I get the following error:
Fatal error : Call to undefined function: _str_replace() in /home2/riley/public_html/g.php on line 24
line 24 isn't anywhere near the str_replace() though.
anyway, here's the code:
$source=$_POST['source'];
$source=str_replace("\r",'',$source);
$source=str_replace("\n",'',$source);
$source=str_replace("\t",'',$source);
$d = eregi("<td class=row2 align=center valign=top>(.*)</td>",$source,$e);
$NAME2 = $e[1];
$NAME = strip_tags($NAME2);
I know that the str_replace() is causing the problem because when I take it out the script doesn't have any errors (but it also doesn't work).
anyway, any thoughts?