TUDDAH
This is why I love programing.
<?
// count the input var $comment
$count = count($comment);
// do a 'for' on each one
for ($i=0; $i<$count; $i++) {
// Make sure Usr has a prod selected
if ($select[$i] == "product_info.php") {} else {
// Comment the origonal var
echo $comment[$i]."<BR>".$select[$i]."<BR><BR>\n\n";
// Turn Var from URL
$string = $select[$i];
// Make a new empty number to = 1
$numberToShow = 1;
$tok = strtok($string,"&");
//while
while ($tok) {
// If statements to SubStr
if ($numberToShow == 1) { echo "<B>ZoneID:</B> ".substr($tok, 24)."<br>\n"; }
if ($numberToShow == 2) { echo "<B>CatID:</B> ".substr($tok, 6)."<br>\n"; }
if ($numberToShow == 3) { echo "<B>ItemID:</B> ".substr($tok, 7)."<br>\n"; }
if ($numberToShow == 4) { echo "<B>ProdID:</B> ".substr($tok, 7)."<br>\n"; }
// + the string
$numberToShow++;
// do that strtok thinggy.....
$tok = strtok("&");
}
// Reset the number back to blank, echo a HR to empty things out
$numberToShow = 1;
echo "<HR>";
}
}
?>
OUTPUT
product_info.php?ZoneID=hockey&CatID=iceHockey&ItemID=FaceIceHockey&prodID=751
ZoneID: hockey
CatID: iceHockey
ItemID: FaceIceHockey
ProdID: 751
CLICK HERE TO VIEW WHAT I'VE JUST DONE FOR IT 😃😃😃