# Obtaining a variable from a dynamic text field?!

**URL:** <https://forum.kirupa.com/t/obtaining-a-variable-from-a-dynamic-text-field/163435>\
**Category:** Uncategorized\
**Created:** [September 22, 2005, 1:12pm UTC](https://forum.kirupa.com/t/obtaining-a-variable-from-a-dynamic-text-field/163435 "2005-09-22T13:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashleek007](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Ashleek007](https://forum.kirupa.com/u/Ashleek007)\
**Post date:** [September 22, 2005, 1:12pm UTC](https://forum.kirupa.com/t/obtaining-a-variable-from-a-dynamic-text-field/163435/1 "2005-09-22T13:12:27Z")

</div>

hey everybody!

i’ve got another problem. lol.

I have stored a value in a dynamic text field which has the instance name ‘myPictureVar’ and variable name ‘desc’

so from this i get a dynamic text box with a value ‘nopic.jpg’ (pulled from a database which works fine!). This must mean that ‘nopic.jpg’ is stored in the variable ‘desc’

what i want is to take the value in ‘desc’ and append it to another variable called $path = “[http://www.failsworthschool.co.uk/Failsworth/files/](http://www.failsworthschool.co.uk/Failsworth/files/)”

so ive gone about it by doing this??

$imagename = myPictureVar.desc;  
$picture =$path+$imagename;

so then the variable $picture will have the full path to the file??? but no it doesnt work, comes back with

[http://www.failsworthschool.co.uk/Failsworth/files/undefined](http://www.failsworthschool.co.uk/Failsworth/files/undefined)

I think my problem is with finding where the actual value ‘desc’ is, so i can use it???

im bamboozled!lol :wasted:
