* if i will click a input button in basic page a particular function should be called from my custom module. I have already enabled my module in my instance.*
<?php
$name = $_POST['name'];
$pwd = $_POST['pwd'];
homeFun($name,$pwd)
?>
<form method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
<p>Name<br> <input type="text" name="name"><br></p>
<p>Password:<br><input type="password" name="pwd"><br></p>
<input type="submit" value="Register">
</form>
i am using this code...and its working but the problem is while refreshing the page, function automatically gets called without clicking button... I wrote this code in Basic Page...
Please guys tell me the proper way to call the functioin from my basic page.
I just wanted to execute my cutome module function after clicking submit button...is there any simple way to do that...