I know it might sound a little stupid here. But i downloaded a script off github and realise that one of its form submission actually reference the form inputs to a folder/dir instead of a single php file.
My question here now is if this is the case, does it mean that all the scripts within the folder itself will be able to get my $_POST form inputted results?
Assuming you are talking about something like:
It expects that the file served by the web server as the directory index (e.g.
index.php) receives the form post and handles the input. So you aren’t posting the form to a directory, but to the default file the web server executes when the directory is accessed.The
action=attribute of a<form>tag just needs to be some relative or absolute URI – it doesn’t have to point to an actual existing file. It would be up to the web server to determine which script to execute based on directory index rules, rewrite rules, etc.