$ _POST中的javascript内容 [英] javascript content in $_POST

查看:64
本文介绍了$ _POST中的javascript内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我试图通过表单textarea输入发布一个javascript内容

元素。

但是当我点击发送(发布)发布的页面无法访问。


发布的示例内容:


< script type =" text / javascript" ;

src =" http://test.com">

< / script>


我认为它是关于apache或php配置的。


在我的本地计算机上,没有问题。问题发生在我的托管

环境。

问候,

-

Gokhan Altinsoy~ = 15000 - >
http://www.itinfomap.com/bilin/perso...iew&itemid=106

解决方案

G ?? khan Alt?±nsoy写道:

$ b $


我想发布一个javascript c ontent via form textarea input

元素。






我不确定我明白你的意思。

你不能发帖通过发布表单的JavaScript变量。

您当然可以在发布之前将javascript变量INTO的值放入表格



但是在帖子之后到达服务器的唯一的东西是表单的

内容,而不是一个JavaScript变量将自己发布。


但是当我点击发送(发布)时,发布的页面无法访问。



你是什么意思?


>

例子发布内容:


< script type =" text / javascript"

src =" http://test.com">

< / script>



这不是表格,也不是帖子。它只是一段JavaScript。


>

我认为它是关于apache或php配置的。



我不这么认为。


>

在我的本地电脑,没有问题。问题发生在我的托管

环境。



请理解我们只能猜测你正在做什么,所以我们可以

也只猜你的问题。

用一小段相关代码以更清晰的方式写出来。 />

问候,

Erwin Moller


问候,


-

Gokhan Altinsoy~ = 15000 - >
http://www.itinfomap.com/bilin/perso...iew&itemid=106


12月3日,11:40,Erwin Moller

< Since_humans_read_this_I_am_spammed_too_m ... @ spam yourself.comwrote:


我不确定我明白你的意思。

你不能通过张贴表格发布一个JavaScript变量。

你当然可以把javascript变量INTO表格的价值

发布之前。



欧文,他的帖子很清楚(至少在这一点上)。他没有试图发布一个javacript变量。


他说他正在推出:

< script type = " text / javascript"

src =" http://test.com">

< / script>


在textarea。


我不清楚的是,发布的页面

是不可接受的?


2007年12月3日星期一12:40:22 +0100,Erwin Moller

< Si *********** ******************************* @ spam yourself.comwrote:


G ?? khan Alt?±nsoy写道:


>我试图通过表单textarea输入
元素发布一个javascript内容。



我不确定我明白你的意思。



我也不能


>但是当我点击发送(帖子)发布的页面无法访问。



你是什么意思?



发布''page''?有可能这是一个CMS后端,这个特殊的代码

打破了CMS?


>帖子的示例内容:
< script type =" text / javascript"
src =" http://test.com">
< / script>



这不是表格,也不是帖子。它只是一段JavaScript。


>我认为这是关于apache或php配置。



我不这么认为。


>在我的本地计算机上,没有问题。问题发生在我的托管环境中。



请记住javascript的不同''安全许可''取决于

来自哪里..


请理解我们只能猜测你在做什么,所以我们可以

也只猜你的问题。 br />
用一小段相关代码以更清晰的方式写出来。



的确如此。一个(一个模型)形式的网址也会对

理解OP有很大的帮助。

-

Rik Wasmus


Hi,

I am trying to post a javascript content via form textarea input
element.
But when i click send (post) the posted page comes unaccesible.

example content for post :

<script type="text/javascript"
src="http://test.com">
</script>

I think it is about apache or php configuration.

In my local computer , there is no problem.Problem occurs my hosting
environment.
Regards,
--
Gokhan Altinsoy ~= 15000 -->
http://www.itinfomap.com/bilin/perso...iew&itemid=106

解决方案

G??khan Alt?±nsoy wrote:

Hi,

I am trying to post a javascript content via form textarea input
element.

Hi,

I am unsure I understand what you mean.
You cannot post a JavaScript variable by means of posting a form.
You can of course put the value of a javascriptvariable INTO a form
before posting it.
But the only thing that arrives at the server after the post is the
content of the form, not one JavaScript variable will be posted by itself.

But when i click send (post) the posted page comes unaccesible.

What do you mean by that?

>
example content for post :

<script type="text/javascript"
src="http://test.com">
</script>

That is NOT a form, nor a post. It is just a piece of JavaScript.

>
I think it is about apache or php configuration.

I don''t think so.

>
In my local computer , there is no problem.Problem occurs my hosting
environment.

Please understand we can only guess what you are doing, and so we can
also only guess at your problem.
Write it over in a more clear way with a little piece of relevant code.

Regards,
Erwin Moller

Regards,
--
Gokhan Altinsoy ~= 15000 -->
http://www.itinfomap.com/bilin/perso...iew&itemid=106


On 3 Dec, 11:40, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:

I am unsure I understand what you mean.
You cannot post a JavaScript variable by means of posting a form.
You can of course put the value of a javascriptvariable INTO a form
before posting it.

Erwin, he was quite clear in his post (on this point at least). He is
not trying to post a javacript variable.

He said that he is putting:
<script type="text/javascript"
src="http://test.com">
</script>

in a textarea.

What is not clear to me is precisely in what way "the posted page
comes unaccesible"?


On Mon, 03 Dec 2007 12:40:22 +0100, Erwin Moller
<Si******************************************@spam yourself.comwrote:

G??khan Alt?±nsoy wrote:

> I am trying to post a javascript content via form textarea input
element.


I am unsure I understand what you mean.

Neither can I

>But when i click send (post) the posted page comes unaccesible.


What do you mean by that?

Posted ''page''? Chances are this is a CMS backend, and this particular code
breaks the CMS?

> example content for post :
<script type="text/javascript"
src="http://test.com">
</script>


That is NOT a form, nor a post. It is just a piece of JavaScript.

> I think it is about apache or php configuration.


I don''t think so.

> In my local computer , there is no problem.Problem occurs my hosting
environment.

Keep in mind the different ''security clearances'' of javascript depending
on where it comes from..

Please understand we can only guess what you are doing, and so we can
also only guess at your problem.
Write it over in a more clear way with a little piece of relevant code.

Indeed. An url of (a mockup of) the form would also help a lot in
understanding the OP.
--
Rik Wasmus


这篇关于$ _POST中的javascript内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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