...

View Full Version : calling php from Javascript ---Problem Solved



o0O0o.o0O0o
01-16-2008, 03:46 AM
hi ,


I have just found a php script through which we can directly call the php functions

e.g


<php

require"PHPLiveX.php";

function getData($id)
{
..... database code
}

function setData($a,$b)
{
... . . . database code
}




we just have to use this line


$plx = new PHPLiveX("getData,setData");
<? $plx->Run(); ?>



And we can call functions directly from javascript


<a href="javascript:getData(1, 'target=showText');">test it</a>

<span id="showText"></span>

It is working perfectly fine


http://www.phplivex.com/

Fumigator
01-16-2008, 03:57 AM
Also known as Ajax...

o0O0o.o0O0o
01-16-2008, 04:08 AM
Also known as Ajax...

I know its AJAX , but the person who does not know AJAX in detail
can use it very easily



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum