HELP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
umoplata
Forum Newbie
Posts: 4
Joined: Fri Jul 11, 2003 2:49 am

HELP

Post 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>
umoplata
Forum Newbie
Posts: 4
Joined: Fri Jul 11, 2003 2:49 am

the error is invalid range end

Post by umoplata »

the error is invalid range end

:) thanks in advance
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

please refer to your previous post....
Or even better...stay in that subject.
umoplata
Forum Newbie
Posts: 4
Joined: Fri Jul 11, 2003 2:49 am

Post by umoplata »

:o It seems I have made a mistake I apologize for that.
Post Reply