call the function when user clicks the link
Posted: Sat Jun 20, 2009 11:32 pm
Hi All
I need help in calling a PHP function on user action(clicking a link).
I want to call a function when user clicks the link on a page instead of page load.
The function actually creates a symlink to the video file,so i don't want to create the link on initial page load and I want to create the link when user click the play link.
sample code..
function createLink()
{
//link creation
return $url;
}
html code
<a href="<? =createLink()?>" />
Please help me out.
Raj
Thanks
I need help in calling a PHP function on user action(clicking a link).
I want to call a function when user clicks the link on a page instead of page load.
The function actually creates a symlink to the video file,so i don't want to create the link on initial page load and I want to create the link when user click the play link.
sample code..
function createLink()
{
//link creation
return $url;
}
html code
<a href="<? =createLink()?>" />
Please help me out.
Raj
Thanks