I'm having trouble with retrieving a couple variables appended to a url and dividing them and assigning the result to a new variable. I suspect it has something to do with them possibly being strings as opposed to integers so the math is returning 0 for a value. But I could be absolutely wrong.
Below is the pertinent code.
When dividing expenses by income the value for $tdsr keeps appearing as '0'
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$recording = $_REQUEST['recording'];
$numbertocall = $_REQUEST['numbertocall'];
$income = $_REQUEST['income'];
$expenses = $_REQUEST['expenses'];
$tdsr = $expenses/$income;