People
I want to know how to submit form without action attribute shown.
Like this
<form action="someact.php" method="post">
...
</form>
Some suggest to use $_PHP['SELF'], but I want my form to be processed using another php file like separating UI part and process part so that anyone can’t see my process file ?
I want like this
<form method="post">
...
</form>
But it processed to the file I want.
Help please ?
Firstly, I don’t quite understand why you would want this. The whole point of the
actionattribute is to tell the browser where to send the request, and “hiding” it achieves nothing – any half-way competent hacker (or even less than half-way) can still find the information you are hiding, no matter what you do.Having said that, you could do something like this: