Javascript Function Accepting PHP Variables

后端 未结 3 478
无人共我
无人共我 2021-01-26 02:22

I\'m drawing a complete blank why this isn\'t working. I can do it with one variable passing through, but not two. When I use actually numbers like getnt(1,2) it wo

3条回答
  •  -上瘾入骨i
    2021-01-26 03:15

    If the ID and pnID are strings, enclose them with brackets like this.

      
      VIEW";
      ?>
      
    

    If still not working, You can debug your code

    1. View the source code in browser, make sure it generates correctly.
    2. Put some alert messages in the javascript function. Install Firebug if you have Firefox or see

    3. Javaascript console if you get any javascript errors.

提交回复
热议问题