# MX taking user Info

**URL:** <https://forum.kirupa.com/t/mx-taking-user-info/8950>\
**Category:** programming\
**Created:** [December 1, 2002, 9:17pm UTC](https://forum.kirupa.com/t/mx-taking-user-info/8950 "2002-12-01T21:17:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amiridon](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Amiridon](https://forum.kirupa.com/u/Amiridon)\
**Post date:** [December 1, 2002, 9:17pm UTC](https://forum.kirupa.com/t/mx-taking-user-info/8950/1 "2002-12-01T21:17:57Z")

</div>

Attached is a form that I am working on and I do not have this site on a server yet.

But I wanted to know how I would be able to create a “submit” button that would send all of the data to a database.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 1, 2002, 11:36pm UTC](https://forum.kirupa.com/t/mx-taking-user-info/8950/2 "2002-12-01T23:36:49Z")

</div>

Make sure you assign variable names to all the data that you are submitting and then…

Button action for submiting:

```php

on (release) {
    getURL("script.php", "", "POST");
}

```

Script PHP

```php

<?
MYSQL_QUERY("INSERT INTO table_name VALUES ('$value1', '$value2', '$so_forth'");
?>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 4, 2002, 1:08pm UTC](https://forum.kirupa.com/t/mx-taking-user-info/8950/3 "2002-12-04T13:08:39Z")

</div>

And make sure the variables assigned to the forms textfields match the $variable used in PHP; also maybe use loadVars instead of getURL…and if you have any other vars lying around the timeline you call that script from, all of them will be send, so in general, i prefer to use a special vars clip, where i store & retrieve all the needed (and only those) variables…
