Jump to content


  • Please log in to reply
1 reply to this topic

#1 Guest_Tim London_*

Guest_Tim London_*
  • Guests

Posted 30 June 2006 - 04:11 PM

Hi Guys,

If I have a web page called frogs.php and I define a function as:

function frog() {
echo "hello frogs!!";

I know that I can use <? echo frog(); ?> within the html part of the page to run the function but can I somehow bind that to a button or a link so that a user can run the function by clicking on a button or a link?

#2 Orio

  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 30 June 2006 - 04:13 PM

Only with JS/Ajax, unless you move to a new page (because the data needs to be sent to the server with php).

Think you're smarty?

(Gone until 20 to November)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users