Skip to content
WJunction - Webmaster Forum

Can echoed html in php page, use php function

Status
Not open for further replies.
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.

About the author

Porsche_maniak
Active Member · Joined
Auto racing,Porsche,Web Development
283
Messages
0
Reactions
16
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom