Can echoed html in php page, use php function

Status
Not open for further replies.

Porsche_maniak

Active Member
283
2009
0
40
I am talking about that ...

Code:
function cleanfolder()
{unlink ($favfld); echo '<meta http-equiv="refresh" content="3">';}

echo '<div title=\'Once clicked,your favourites will be removed and cannot be restored !\' [B]onclick="cleanfolder()"[/B]>Clean Folder</div>';

But the above code does not work...

If not possible is there any other simple alternative which can do the same job...

Thanks
 
2 comments
i loled..

PHP Is a server side language so no php code that is in your html will be executable.
you will have to do a ajax callback system to run specific commands via html.
 
Status
Not open for further replies.
Back
Top