Your server will receive a string of data which includes a header plus all the form data as a set of value pairs separated by an ampersand (&). Here is an example:
Content-Type: application/x-www-form-urlencoded
Content-Length: XX
name=Fred Bloggs&email=some email address&subject=Form Response&message=My message content
If you use the post method, the data will be sent as above. If you use the get method, the data string will be appended to the actual URL when the form is submitted. This isn’t a preferred method because there may be restriction on the length of a URL that can be sent. Also, the URL would expose the form data in the URL which may become visible.
If you use the get method the following data string will be appended to the URL of your script:
/?name=Fred Bloggs&email=some email address&subject=Form Response&message=My message content HTTP/2.0
The URL where the data is sent will typically be the URL of a processing script. The script will receive the data and extract the data string. This will then be parsed to retrieve the data as a list of key/value pairs. These are usually then added to an email message that get’s sent to the form recipient. It ends up looking like this:
name=Fred Bloggs
email=Some Email Address
subject=Form Response
message= My Message Content
However, your script can be configured to use the key/value pairs in other ways, such as sending to a database, filling an HTML template or creating a CSV file. More complex scripts may be able to send the data to other applications for further processing. E-commerce shopping carts are a prime example, where the date is used to create an order and its associated invoice.
Whilst PHP is the more usual language used for processing data, there is nothing preventing you from using alternative languages as long as they are supported by your web server.
The advanced form submission option is simply a mechanism for you to define a URL for the submission. So, if you created your own script to manage the data, you would simply add the URL of that script by selecting the advances form submission option. If this isn’t used, the data will be sent to the standard Sparkle generated script.