帖子和php(新手问题) [英] post and php (newbie question)

查看:79
本文介绍了帖子和php(新手问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






有没有人知道是否可以在不使用

的情况下发布到页面形成?例如,如果我想将一个变量传递给另一个页面

而不使用cookie,有没有办法用帖子传递它?


谢谢,

Phil


Hi,

Does anyone know if it''s possible to post to a page without using a
form? For example, if I want to pass a variable to another page
without using a cookie, is there a way to pass it using post?

Thank you,
Phil

推荐答案

2008-08-16, cp ****** @ gmail.com < cp ****** @ gmail.comwrote:
On 2008-08-16, cp******@gmail.com <cp******@gmail.comwrote:

>




有没有人知道是否可以在不使用
$ b的情况下发布到页面$ b表格?例如,如果我想将一个变量传递给另一个页面

而不使用cookie,有没有办法用帖子传递它?


谢谢,

Phil
>
Hi,

Does anyone know if it''s possible to post to a page without using a
form? For example, if I want to pass a variable to another page
without using a cookie, is there a way to pass it using post?

Thank you,
Phil



简短的回答是否定。


但是,它可能是可能的使用AJAX创建一些hack来发送特定于用户系统的数据(我不知道什么可能是唯一的
),然后动态生成页面的其余部分

基于此。


但是,当JS被禁用时,这种情况非常失败。


为什么不使用cookies?


-

Andrew Poelstra ap ******* @ wpsoftware.com

要给我发电子邮件,请使用.com设置为.net

The short answer is no.

However, it might be possible to create some hack using AJAX to
send data specific to the user''s system (I don''t know what might
be unique) and then dynamically generate the rest of the page
based on that.

This fails spectacularly when JS is disabled, though.

Why not just use cookies?

--
Andrew Poelstra ap*******@wpsoftware.com
To email me, use the above email addresss with .com set to .net

<的上述电子邮件地址br />


Andrew Poelstra写道:
Andrew Poelstra wrote:

2008-08-16, CP ****** @ gmai l.com < cp ****** @ gmail.comwrote:
On 2008-08-16, cp******@gmail.com <cp******@gmail.comwrote:

>

有谁知道是否可以在不使用
表单的情况下发布到页面?例如,如果我想将一个变量传递给另一个页面而不使用cookie,有没有办法用帖子传递它?

谢谢你,
Phil
>Hi,

Does anyone know if it''s possible to post to a page without using a
form? For example, if I want to pass a variable to another page
without using a cookie, is there a way to pass it using post?

Thank you,
Phil



简短的回答是否定。


但是,有可能使用AJAX创建一些hack来

发送特定于用户系统的数据(我不知道
可能是唯一的)然后动态生成页面的其余部分

基于此。


但是当JS被禁用时,这种情况非常失败。


为什么不使用cookies?


The short answer is no.

However, it might be possible to create some hack using AJAX to
send data specific to the user''s system (I don''t know what might
be unique) and then dynamically generate the rest of the page
based on that.

This fails spectacularly when JS is disabled, though.

Why not just use cookies?



为什么也只是简单地将其包含在表格中?顺便说一下,如果用户禁用了cookie,那么写入cookie以传递信息会发生什么?

Why nor just simply enclose it in a form? BTW, what happens with
writing to cookies to pass information if the user has cookies disabled?


cp ****** @ gmail.com 写道:




有没有人知道是否可以在不使用

表格的情况下发布到页面?例如,如果我想将一个变量传递给另一个页面

而不使用cookie,有没有办法用帖子传递它?


谢谢,

Phil
Hi,

Does anyone know if it''s possible to post to a page without using a
form? For example, if I want to pass a variable to another page
without using a cookie, is there a way to pass it using post?

Thank you,
Phil



你不能发布到一个页面。但为什么不把变量放在

You can''t post to a page. But why not put the variable in the


这篇关于帖子和php(新手问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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