Page 1 of 1

HELP

Posted: Fri Jul 11, 2003 4:11 am
by umoplata
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>

the error is invalid range end

Posted: Fri Jul 11, 2003 5:06 am
by umoplata
the error is invalid range end

:) thanks in advance

Posted: Fri Jul 11, 2003 5:12 am
by redhair
please refer to your previous post....
Or even better...stay in that subject.

Posted: Fri Jul 11, 2003 10:01 am
by umoplata
:o It seems I have made a mistake I apologize for that.