That is bizarre.
I would start to troubleshoot this by saying that the problem is either client side or server side. Maybe the HTML page is submitting twice? There are myriad techniques you can use to make it impossible to submit a form twice. Have you looked at your server side PHP script? Are there any more instances of "mysql_query($sqlquery);" For example, I made the mistake once of setting $query, executing the query on $query, and then setting $SQL_query but executing the query on $query again.
Also, is it possible that after you execute the query, you are including other files that could be executing the query again?
You might try this is a troubleshooting technique: At the top of your PHP script, say $m_time = microtime(); And insert that into the table too (to make it easy, you could append it to $name). Now, if the SCRIPT is the one that's inserting this twice, the two instances of $m_time will be exactly the same. If the HTML page is submitting twice, then the two instances will be different.
Start there - tell us what you figure out.