Forum Moderators: coopster
Here is the code:
echo '<input type="hidden" name="Order ';
echo $orderNumber;
echo '" value="';
echo 'Qty: ';
echo number_format($ordersArray[$itr]);
echo ' Part ID: ';
echo $ordersArray[$itr+1];
echo ' Unit: ';
echo $ordersArray[$itr+2];
echo ' Unit Price: $';
echo number_format($ordersArray[$itr+3],2);
echo ' Subtotal: $';
echo number_format($ordersArray[$itr+4],2);
echo ' Description: ';
echo $ordersArray[$itr+5]);
echo '">';
You need to convert the quotes to character entities. ie: " > "
Take a look at htmlspecialchars().
[uk.php.net...]
dc