将php变量转换为javascript变量 [英] Converting php variable into javascript variable

查看:69
本文介绍了将php变量转换为javascript变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何将php变量转换为javascript变量。我需要这个,因为我想在html字段的文本框中显示php变量的内容。


关于

Hi all,
How to convert a php variable into the javascript variable. I need this because i want to display the content of php variable in the textbox of html field.

With regards

推荐答案

Heya,Kumuda。


您可以在文本框中显示PHP变量,如下所示:
Heya, Kumuda.

You can display a PHP variable in a textbox like this:
展开 | 选择 | 换行 | 行号



大家好,

如何将php变量转换为javascript变量。我需要这个因为我想在html字段的文本框中显示php变量的内容。


关于
Hi all,
How to convert a php variable into the javascript variable. I need this because i want to display the content of php variable in the textbox of html field.

With regards



不需要使用java脚本....试试这个


No need to go with java script....try this

展开 | 选择 | Wrap | 行号


AMT,发布源代码时请使用CODE标签。请在下次发布时查看页面右侧的REPLY GUIDELINES。
AMT, please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.


这篇关于将php变量转换为javascript变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆