I can't figure this out. I have the following:
<?php
$TillID = $_POST['tillid'];
$BranchID = $_POST['branchid'];
$TransactionNumber = $_POST['transactionnumber'];
$trackingnumber = $TillID . $BranchID . $TransactionNumber;
echo "$trackingnumber\n\n";
echo "$TillID $BranchID $TransactionNumber";
?>
This outputs:
lWWmm
a12 WW 9181
(the values should be a12, WW, 9181).
I've no idea where the 'l' or 'mm' are coming from (they are not values returned by anything in the code). Thinking the concatenation was the problem I have also tried:
<?php
$trackingnumber = "$TillID$BranchID$TransactionNumber";
?>
and
<?php
$trackingnumber = $TillID;
$trackingnumber .= $BranchID;
$trackingnumber .= $TransactionNumber;
?>
The result is always the same. Really scratching my head over this one.