how to access PHP variables from within JavaScript?

前端 未结 3 943
北恋
北恋 2020-12-12 06:31

I want to access PHP(server side file variables) with JavaScript(Client side script) without using MySQL. e.g. i have $name=Tom; How do i access this $name variable in Ja

3条回答
  •  攒了一身酷
    2020-12-12 07:30

    you can do this simple things.


    function reset1()
    {
    //document.frmadd.intFaqCategoryTypeID.value='1';
    document.frmadd.reset();
    document.frmadd.intChatRoomCategoryId.value='';
    document.frmadd.intEventId.value='';
    document.frmadd.intGroupId.value='';
    document.frmadd.intMemberID.value='';
    return false;
    }
    

提交回复
热议问题