This is the simplest way to create a form that inputs data to a structure.
Simply take the name of the structure and input it into the code below.
Now load the page in a browser and you will see a form including all the fields from the structure. Now view the page source, copy the form code, remove the fields you do not require.
Note: If there are any binary fields you must make sure to hold on to the FILE/BROWSE field.