Jump to content

Call php function from file


alicefreak

Recommended Posts

Hello guys, I'm new to PHP. Please help me. I have two functions in myFunctions.php

1 is myName() and second one is yourName()

function myName()
{
      echo "my name is this.";
}
function yourName()
{
    echo "your name is that.";
}

and I have two submit button. One is my and another is you. When user click on my button. then myName() function is called and when user click on you then yourName() function is called.

Please help me. Thanks

Link to comment
https://forums.phpfreaks.com/topic/213163-call-php-function-from-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.