Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/05/2013, 10:48
pr0
 
Fecha de Ingreso: marzo-2004
Mensajes: 687
Antigüedad: 20 años, 1 mes
Puntos: 28
Respuesta: Mandar a llamar una funcion ;)

Código PHP:
Ver original
  1. view.php
  2.  
  3. include "class.php";
  4.  
  5. //si se hizo submit al formulario
  6. if($_POST['form1']){
  7.  
  8.    //creamos un objeto ticket (suponemos que la clase se llama Ticket)
  9.    $ticket = new Ticket();
  10.    //llamamos al metodo que necesitamos
  11.    $ticket->inicioatencion;
  12.  
  13. }
  14.  
  15. <form name="form1" method="post" action="view.php" >
  16.    <input name="submit" type="submit" class="button" value="Iniciar ticket">
  17. </form>