![]() |
| ||
| how to access accessing PHP variable in JavaScript hi, iam doing a project. i have a problem that is "how to access PHP variable in Javascript". |
| ||
| Re: how to access accessing PHP variable in JavaScript The simplest way is to have php write the info you want into the page as javascript, for ex: <script type="text/javascript" language="javascript"> |
| ||
| Re: how to access accessing PHP variable in JavaScript hey, you can do this simple things. ---------------------------------------------------------------------- function reset1() { //document.frmadd.intFaqCategoryTypeID.value='1'; document.frmadd.reset(); document.frmadd.intChatRoomCategoryId.value='<?php echo $intChatRoomCategoryId ; ?>'; document.frmadd.intEventId.value='<?php echo $intEventId ; ?>'; document.frmadd.intGroupId.value='<?php echo $intGroupId ; ?>'; document.frmadd.intMemberID.value='<?php echo $intAddedByMemberId ; ?>'; return false; } --------------------------------------------------------------------------------------------------------- u can reach me at hetalsagar@rediffmail.com |
| ||
| Re: how to access accessing PHP variable in JavaScript You just bumped into a 2+ yr old thread ! |
| ||
| Re: how to access accessing PHP variable in JavaScript i have two diffrent file php and html(includes javascript..) how can i access php variable in javascript using two seprate file .can u plz guid me.. |
| ||
| Re: how to access accessing PHP variable in JavaScript i have two diffrent file php and html(includes javascript..) how can i access php variable in javascript using two seprate file .can u plz guid me.. |
| ||
| Re: how to access accessing PHP variable in JavaScript Quote:
|
| All times are GMT -4. The time now is 1:15 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC