phppaper Posted November 13, 2010 Share Posted November 13, 2010 is there anyway to hide the action URL from html form example: <form name="afrom" action="hide.php" method="post"> so it end up from the user side: <form name="afrom" action="" method="post"> Thanks! Quote Link to comment Share on other sites More sharing options...
DavidAM Posted November 14, 2010 Share Posted November 14, 2010 I don't think so. The action attribute tells the BROWSER where to send the data. Without it, the browser would not know where to submit the form. If you leave the action field blank, the browser will submit to the same page as it is already on. You could try to hide it using javascript to submit the form, but then the url would be openly visible in the javascript code; plus some users might have javascript off. The only suggestion I can offer is to submit it to a script that somehow forwards the submission to a different page, perhaps with an additional "secret" value (to prevent people from directly accessing the page). Of course, that page's address will be visible in the browser, unless you post the data using curl and send the user somewhere else. What are you hoping to accomplish and why? We might be able to offer alternatives if we know this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.