1
/* sendmoney.php */ 2 <? 3 session_start(); 4 if(isset($_REQUEST['cash'])) 5 $cash = $_REQUEST['cash']; 6 else 7 die("Specify the amount of money"); 8 if(isset($_REQUEST['toname'])) 9 $toname = $_REQUEST['toname']; 10 else 11 die("Specify a recipient"); 12 if(isset($_REQUEST['toabi'])) 13 $toabi = $_REQUEST['toabi']; 14 else 15 die("Specify the ABI"); 16 if(isset($_REQUEST['tocab'])) 17 $tocab = $_REQUEST['tocab']; 18 else 19 die("Specify the CAB"); 20 if(isset($_REQUEST['tocin'])) 21 $tocin = $_REQUEST['tocin']; 22 else 23 die("Specify the CIN"); 24 25 // This function safely send the money to the target 26
send_money($cash, $toname, $toabi, $tocab, $tocin); 27 28 ?> 29 /* EOF */ |