Hi,
I have a problem a would like to make something like a MUTCH in purl but I can't did it in PHP. I did so:
$a01="Alfa beta delta";
$a02="Abra cadabra";
$a03="Sim salabim";
if(preg_match("/$a01/i","$formdata")){
print("This is choise 1<BR>");
}else{
$x01=1;
}
if(preg_match("/$a02/i","$formdata")){
print("This is choise 2<BR>");
}else{
$x02=1;
}
if(preg_match("/$a03/i","$formdata")){
print("This is choise 3<BR>");
}else{
$x03=1;
}
if(($x01==1)AND($x02==1)AND($x03==1)){
print ("This is wrong choise!<br>";
}
This thing finds only the whole string in variables ($a01 or $a02 or $a03) and I would like to make it to find only part of it for example if my $a01="Alfa beta delta" I would like to make it find only "beta" or "delte" but not "Alfa beta delta"
Help me please!!!!!
vlad