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? Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/164886-solved-undefined/#findComment-869512 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.