Could someone explain what method or how a form thats using this code works?
<form method='post' enctype='multipart/form-data' target='gform_ajax_frame_1' id='gform_1'
action='/contact-us/#gf_1'>
</form>
I’m trying to learn more about forms, and right now I’m trying to build a multipart form like one of my friends did.
I’m used to forms saying action="contact.php" but this one says action="/contact_us/#gf_1". What does it mean?
In forms
Action refers
to Where to send the form-data when the form is submitted
and methods refers to
The method attribute specifies how to send form-data (the form-data is sent to the page specified in the action attribute).
The form-data can be sent as URL variables (with method=”get”) or as HTTP post transaction (with method=”post”).
Notes on GET:
Notes on POST:
http://www.w3schools.com/tags/att_form_action.asp
http://www.w3schools.com/tags/att_form_method.asp