Quote:
Originally Posted by RayVega
Thanks bro...right on target. problem solved!
|
although, cos I know what you're doing

the agent id is a 10 digit string and will only occur once, so to be absolutely sure....
if(preg_match('/agentid\=(\d{10})&listingid/',$str,$matches)){
cos otherwise, the regexp given would pick up also:
$a="...$agentid=1&listingid...etc.";

<- my invoice for this wonderful piece of insight