<?php 
$co=$_POST["cod"];
$no=$_POST["nom"];
$ap=$_POST["ape"];
$te=$_POST["tel"];
$ce=$_POST["cel"];
$or=$_POST["org"];
$of=$_POST["ofi"];
$fe=$_POST["fec"];
$pr=$_POST["pro"];
$fu=$_POST["fue"];
$pb=$_POST["prb"];
$ta=$_POST["tea"];
$tn=$_POST["ten"];
$id=$_POST["idu"];

$dat = array("cod"=>$co,"nom"=>$no,"ape"=>$ap,"tel"=>$te,"cel"=>$ce,"org"=>$or,"ofi"=>$of,"fec"=>$fe,"pro"=>$pr,"fue"=>$fu,"prb"=>$pb,"tea"=>$ta,"ten"=>$tn,"idu"=>$id);
$str = http_build_query($dat);
$url = curl_init("http://softwaremelissa.com/core/registrarAsistencia.php");
curl_setopt($url,CURLOPT_POST,true);
curl_setopt($url,CURLOPT_POSTFIELDS,$str);
curl_setopt($url,CURLOPT_RETURNTRANSFER,true);
curl_exec($url);
curl_close($url);