Im still getting an error on line 21 and im stuck . Does anyone know the answer?
<HTML>
<HEAD>
<Title></title>
</HEAD>
<Body>
<?
/* This page recieves and handles the data generated by "form.html". */
if (($Array["FirstName"])&&($Array["LastName"])) {
$Array["Name"] = $Array["FirstName"] .
" " . $Array["LastName"];
} else {
print ("Please enter your first and last names.<BR>\n");
}
$Pattern = "(http://)?([^[:space:]]+)([[:alnum:]\.,-_?\&=])";
$Replace = "<a href=\"http://\\2\\3\"target=\"_new\">\\2\\3</a>";
/* THIS IS LINE 21 ERROR>> */ $Array["URL"] = eregi_replace($Pattern,$Replace, $Array["URL"]);
print ("Your submission--$Array[URL]--has been recieved!<BR>\n");
?>
</BODY></HTML>
HELP
Moderator: General Moderators
the error is invalid range end
the error is invalid range end
thanks in advance