hauzer Posted August 13, 2011 Share Posted August 13, 2011 First of all, I have absolutely no knowledge of PHP but do have of some basic HTML, although I know a number of varied languages very well. I'm not sure if this is the right section either, my appologies if it isn't. I am trying to POST some data to a webpage using curl. It has a form that looks something like this: <form action="/" method="post"> <div> <label for="data">Data:</label> <input id="user_name" name="user[name]" size="30" type="text" /> </div> .... </form> The problem is that I'm not sure how to address the form under the name of "/". This may seem like a curl question, but I'm actually interested in how this works. Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted August 13, 2011 Share Posted August 13, 2011 cant say i've ever seen an action of "/", not even sure where it would take you.. what is your goal by doing this..? Quote Link to comment Share on other sites More sharing options...
hauzer Posted August 13, 2011 Author Share Posted August 13, 2011 I am really just messing around, experimenting with curl on various websites; and then I encounter this. Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted August 13, 2011 Share Posted August 13, 2011 All it does is self reference the form. In other words when you press submit the same page is being reloaded. Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted August 13, 2011 Share Posted August 13, 2011 All it does is self reference the form. In other words when you press submit the same page is being reloaded. ah okay, i've never sen that method used to do it.. thanks for that info freakie.. 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.