There is a form that must be implemented by means API Drupal. Show you which direction to go?
Discussion on http://www.drupal.ru/node/36586

<form id="NoteAddForm" method="post" action="/nagpurbirds2/notes/add">	
		<fieldset>
		<legend>Add Note</legend>
	        <input name="data[Note][x1]" type="hidden" value="" id="NoteX1" />
		<input name="data[Note][y1]" type="hidden" value="" id="NoteY1" /> 

How to implement attribute name?