Jump to content

Call javascript function from php function


Siddhartha

Recommended Posts

Hi all, I want to call a javascript function from a php function like this:

 

        public function Buscar()

        {

            $HoraInicio = $_POST['edtHoraInicio'];

            $HoraFin = $_POST['edtHoraFin'];

            $FechaInicio = $_POST['edtFec1'];

            $FechaFin = $_POST['edtFec2'];

 

            $FechaMax = $FechaFin." ".$HoraFin.":00";

            $FechaMin = $FechaInicio." ".$HoraInicio.":00";

 

            $_GET["FechaMax"] = $FechaMax;

            $_GET["FechaMin"] = $FechaMin;

 

            echo $FechaMin;

 

            echo "<script language=javascript>alert('Hi.')</script>";

           

        }

 

but the function Buscar never show the alert but shows the $FechaMin

 

I hopu u guys can help me out with this probem

 

Thanks,

 

Siddhartha

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.