# \[fmx04\] Problem creating links on dynamic data from database

**URL:** https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/117906
**Category:** Uncategorized
**Created:** [July 31, 2004, 5:09pm UTC](https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/117906 "2004-07-31T17:09:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![neiro](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@neiro](https://forum.kirupa.com/u/neiro)
#### Post date: [July 31, 2004, 5:09pm UTC](https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/117906/1 "2004-07-31T17:09:56Z")

</div>

I am loading data into a dynamic textbox from my database using the loadVariables() function.

I am trying to create buttons that have a link like a mailto using the data from the database.

For example:  
on (press){  
getURL(“mailto:”+variable from database);  
}

The variable is already loaded into the dynamic textbox, I just have to figure out how to pass it to the as code above.

Can anyone help me figure this out.

---

<div class="post-metadata">

### Author: ![El\_Phantom](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@El\_Phantom](https://forum.kirupa.com/u/El_Phantom)
#### Post date: [July 31, 2004, 10:41pm UTC](https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/117906/2 "2004-07-31T22:41:11Z")

</div>

Well, for that solution, you can just do  
getURL(“mailto:” + mydynamictextbox.text);

Make sure you put the full location of ‘mydynamictextbox,’ so if your textbox is in the \_root timeline and is named ‘thebox,’ your code would be

getURL(“mailto:” + \_root.thebox.text);

but i would look into LoadVars() object; it tends to be a better solution that loadVariables().

–EP
