ninedoors Posted May 19, 2008 Share Posted May 19, 2008 I would like to know if it is possible to hide the action of a form from the user. Meaning when I want to send a form to a php script when I hover over the submit button you can see the script name in the bottom left hand corner of the browser. Is there a way to avoid this? Nick Quote Link to comment https://forums.phpfreaks.com/topic/106347-php-form-action/ Share on other sites More sharing options...
wildteen88 Posted May 19, 2008 Share Posted May 19, 2008 The path of the script is still going to display in the address bar once the form has been submitted. Quote Link to comment https://forums.phpfreaks.com/topic/106347-php-form-action/#findComment-545084 Share on other sites More sharing options...
947740 Posted May 19, 2008 Share Posted May 19, 2008 You can use javascript, but that can be easily disabled. It must be manually turned on in most cases anyway. Quote Link to comment https://forums.phpfreaks.com/topic/106347-php-form-action/#findComment-545086 Share on other sites More sharing options...
ninedoors Posted May 19, 2008 Author Share Posted May 19, 2008 Is that a huge security risk? It seems like hackers could easily mess around with those scripts then. Nick Quote Link to comment https://forums.phpfreaks.com/topic/106347-php-form-action/#findComment-545088 Share on other sites More sharing options...
revraz Posted May 19, 2008 Share Posted May 19, 2008 If your code is sloppy then sure. If you are really worried about someone running your .php file directly, then put it in a folder that they can't run it from directly but only your script can run. Quote Link to comment https://forums.phpfreaks.com/topic/106347-php-form-action/#findComment-545118 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.