Monkuar Posted July 6, 2009 Share Posted July 6, 2009 lol in my javascript i have var monk=OHHI; this is in a different .php then when i called it out from javascript using +monk+ i get undefined? but if i change monk=1; then it shows 1, why cant i use texT? Link to comment https://forums.phpfreaks.com/topic/164886-solved-undefined/ Share on other sites More sharing options...
Monkuar Posted July 6, 2009 Author Share Posted July 6, 2009 OH DANG!! I Got it!! monk="oh Hi", Now it works! thanks,!! PHPFREAKS Lov u guys aalalal Link to comment https://forums.phpfreaks.com/topic/164886-solved-undefined/#findComment-869511 Share on other sites More sharing options...
AwptiK Posted July 6, 2009 Share Posted July 6, 2009 You need to use quotes to assign a text value to a variable. Edit: I see you already figured it out though, as I was typing the first answer. Link to comment https://forums.phpfreaks.com/topic/164886-solved-undefined/#findComment-869512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.