rv20 Posted May 21, 2009 Share Posted May 21, 2009 If you do something like, <form action = "/login" .....> what is that, it doesn't post or attempt to post, is that CGI, can someone enlightned me? Quote Link to comment https://forums.phpfreaks.com/topic/159158-what-does-form-posting-to-a-directory-mean/ Share on other sites More sharing options...
jackpf Posted May 21, 2009 Share Posted May 21, 2009 What? Quote Link to comment https://forums.phpfreaks.com/topic/159158-what-does-form-posting-to-a-directory-mean/#findComment-839366 Share on other sites More sharing options...
PFMaBiSmAd Posted May 21, 2009 Share Posted May 21, 2009 The action attribute is a URL - http://w3schools.com/tags/att_form_action.asp Quote Link to comment https://forums.phpfreaks.com/topic/159158-what-does-form-posting-to-a-directory-mean/#findComment-839380 Share on other sites More sharing options...
jackpf Posted May 21, 2009 Share Posted May 21, 2009 Ooooh you mean it doesn't post? Yeah, you need to put method="post". Default is GET. Quote Link to comment https://forums.phpfreaks.com/topic/159158-what-does-form-posting-to-a-directory-mean/#findComment-839381 Share on other sites More sharing options...
rv20 Posted May 21, 2009 Author Share Posted May 21, 2009 NO NO here is some source from some *.html page to show you what i mean, <form action="/sessions" method="post"> <!-- all the rest of the code in here --> <input type = "sumbit" > </form> So if i save that code to an *.html file and create a folder called sessions and click the submit button then nothing happens, the page does nothing, if i replaced "/sessions" with say "sessions.php" then it would naviagte to "sessions.php" but the above code is actual code i took from a page, so why does it not do anything when i try it?? Quote Link to comment https://forums.phpfreaks.com/topic/159158-what-does-form-posting-to-a-directory-mean/#findComment-839406 Share on other sites More sharing options...
roopurt18 Posted May 21, 2009 Share Posted May 21, 2009 It's possible that: /sessions actually points at a script file, such as /sessions.php or /process.php or /fooasdfqwertykowijibo.asp. URLs can be virtual, meaning they don't point at an actual resource, but when requested they get directed to an actual resource that does exist. Quote Link to comment https://forums.phpfreaks.com/topic/159158-what-does-form-posting-to-a-directory-mean/#findComment-839409 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.