I was trying to call a particular php function in submit of a form both the form and php scripts are in same page. My code is below.(it is not working and so I need help)
you don't need this code
Instead, you can check whether the form is submitted by checking the post variables using isset.
isset
here goes the code
if(isset($_POST)){ echo "hello ".$_POST['studentname']; }
click here for the php manual for isset