# How to send Form data to a MySQL database creater?

**URL:** <https://forum.kirupa.com/t/how-to-send-form-data-to-a-mysql-database-creater/221957>\
**Category:** programming\
**Created:** [April 9, 2007, 5:42pm UTC](https://forum.kirupa.com/t/how-to-send-form-data-to-a-mysql-database-creater/221957 "2007-04-09T17:42:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisclick](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chrisclick/32/1991_2.png) [@chrisclick](https://forum.kirupa.com/u/chrisclick)\
**Post date:** [April 9, 2007, 5:42pm UTC](https://forum.kirupa.com/t/how-to-send-form-data-to-a-mysql-database-creater/221957/1 "2007-04-09T17:42:31Z")

</div>

Ok… I have 4 php files:

```auto
 config.php
opendb.php
closedb.php
create.php

```

Now config holds all the MySQL connect data, opendb open the MySQL database, create puts the tables in the database, closedb closes the database.

What I want to know is what php file I add a form to and how do i do this:  
A form with 4 inputs and a buttons (host, username, password and database) which will determine what details to use when loggin onto the MySQL db…

How will I do this?
