# Loadvars help

**URL:** <https://forum.kirupa.com/t/loadvars-help/203431>\
**Category:** programming\
**Created:** [October 11, 2006, 12:47am UTC](https://forum.kirupa.com/t/loadvars-help/203431 "2006-10-11T00:47:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [October 11, 2006, 12:47am UTC](https://forum.kirupa.com/t/loadvars-help/203431/1 "2006-10-11T00:47:42Z")

</div>

Hey,

I have a php file which links to my database and pulls the text required out of there.  
is there any problems in my code?? or easier ways? i have used both GET and POST method and still same error  
i’m getting the error “onLoad=%5Btype%20Function%5D” in my dynamic text field…any ideas why??

here is my code:

on(release){  
questions = new LoadVars;  
questions.loadVariablesNum(“questions.php”, 0, “GET”);  
questions.onLoad = function(){  
\_root.questions\_txt = questions.questions\_txt;  
}  
}

cheers in advance 🙂
