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? 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? 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 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. 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?? 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. 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
Archived
This topic is now archived and is closed to further replies.