Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/06/2008, 08:41
jositosov
 
Fecha de Ingreso: junio-2007
Mensajes: 82
Antigüedad: 17 años, 7 meses
Puntos: 0
Paso de variables de una funcion a otra

hola amigos ando hacieno un programa en el que necesitopasar variables de una funcion a otra

Código PHP:
funtion a()
{
echo 
"<center>";
    echo 
"<table class=\"list\" border=\"1px;\" cellspacing=\"10px;\">
                <thead>
                <tr>
                <td class=\"foto\"><img src=\"images/th_"
.$la_foto."\"></td>
                <td class=\"menupeke\">"
.$la_marca."<br />Desde el ".$fechaInicio."<br />Hasta el ".$fechaActual."<br />Hora de entrega ".$Hentrega."<br />Hora de Recogida ".$Hrecogida."<br />Total dias ".$dias_diferencia."</td>
                <td class=\"txtlista\">Total a pagar "
.$subtotal."<br />Total a pagar web ".$pweb."</td>
                <td><a href=\""
.$_SERVER['PHP_SELF']."?accion=pass1&amp;el_id=".$registro['id']."\" la_foto=".$la_foto."\" title=\"Mostrar detalles\"><img src=\"images/b_elegir.jpg\" alt=\"Mostrar detalles\" width=\"65\" height=\"20\" border=\"0\" align=\"middle\"></a></td>
                </table>"
;    

y las recibo asi pero no me llegan bien

Código PHP:
function paso1($con)
{
    
$el_id=$_POST['el_id'];
$la_foto=$_POST['$la_foto'];
     
     
echo 
"<center>";
    echo 
"<table class=\"list\" border=\"1px;\" cellspacing=\"10px;\">
                <thead>
                <tr>hola"
.$el_id."
                <td class=\"foto\"><img src=\"images/th_"
.$la_foto."\"></td>
    </table>"
;    
    echo 
"</center>";

        
//EndFunction 
si fuerais tan amables ... y tubierais la soclucion...