# How does submit.php work?

**URL:** https://forum.kirupa.com/t/how-does-submit-php-work/331122
**Category:** programming
**Created:** [May 21, 2013, 8:51am UTC](https://forum.kirupa.com/t/how-does-submit-php-work/331122 "2013-05-21T08:51:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ankur\_vyas1](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@ankur\_vyas1](https://forum.kirupa.com/u/ankur_vyas1)
#### Post date: [May 21, 2013, 8:51am UTC](https://forum.kirupa.com/t/how-does-submit-php-work/331122/1 "2013-05-21T08:51:30Z")

</div>

In the index.html there is this:\<form id=“form-1” action=“submit.php” method=“post” id=“contact”\> and the submit buttons code’s this: \<a class=“button-1” href="#" onClick=“document.getElementById(‘form-1’).submit()”\>\<span class=“txt”\>Submit\</span\>\</a\>. How does the data go from the form to the database. What do I need to change on WAMPserver? I am new to this.
