Jump to content

<form action="/" ... > and curl


hauzer

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.