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. Link to comment https://forums.phpfreaks.com/topic/244702-and-curl/ 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..? Link to comment https://forums.phpfreaks.com/topic/244702-and-curl/#findComment-1256879 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. Link to comment https://forums.phpfreaks.com/topic/244702-and-curl/#findComment-1256882 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. Link to comment https://forums.phpfreaks.com/topic/244702-and-curl/#findComment-1256908 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.. Link to comment https://forums.phpfreaks.com/topic/244702-and-curl/#findComment-1256921 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.