I have a php file for frontend. In this file there are few forms.
<form name="add3" method="post" id="add3" name="add3" action="add_exec.php" role="form">
</form>
now you can see in action add_exec.php. I want this file not to be execute directly.
I don't want to use .htaccess to achieve this.
Is there anything else we can do to prevent direct execution of add_exec.php
file.
Thanks
Edit:
I am not looking for htaccess answer. If my file is in form action attribute then it will consider as include or not? If no then how can i prevent the execution.