如何正确使用$ _SERVER ['PHP_SELF'] [英] How to use $_SERVER['PHP_SELF'] properly

查看:60
本文介绍了如何正确使用$ _SERVER ['PHP_SELF']的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

功能$ _SERVER [''PHP_SELF''];很好用,但它对我来说很复杂...

在我的网站中尝试使用它来将信息添加到数据库..但是它工作不正确,因为每次打开它都会起作用那个页面甚至我点击reflesh窗口......即使我使用功能如果甚至我使用窗口确认消息....他们也无法帮助。

请帮我解释一下我该怎么办才能阻止脚本无法正常工作才能使用它。

非常感谢你

Paitoon

Hello there,
The fuction $_SERVER[''PHP_SELF'']; is nice to use but it so complicate for me...
In my site to try to use this to add the information to database..but it work not correct because it will work every time i open that page or even i click to reflesh window......even i use funtion if or even i use window confirm msg....they can not help.
please help me to explain what should i do with this to stop the script to not work before i sut mit it.
thank you so much
Paitoon

推荐答案

_SERVER [''PHP_SELF''];很好用,但它对我来说很复杂...

在我的网站中尝试使用它来将信息添加到数据库..但是它工作不正确,因为每次打开它都会起作用那个页面甚至我点击reflesh窗口......即使我使用功能如果甚至我使用窗口确认消息....他们也无法帮助。

请帮我解释一下我该怎么办才能阻止脚本无法正常工作才能解决问题。

非常感谢你

Paitoon
_SERVER[''PHP_SELF'']; is nice to use but it so complicate for me...
In my site to try to use this to add the information to database..but it work not correct because it will work every time i open that page or even i click to reflesh window......even i use funtion if or even i use window confirm msg....they can not help.
please help me to explain what should i do with this to stop the script to not work before i sut mit it.
thank you so much
Paitoon


Heya,Paitoon。


您希望您的代码做什么?举个例子。

你的代码是做什么的,你不想要它做什么?举个例子。

你的代码是什么*不是*它应该这样做?举个例子。
Heya, Paitoon.

What do you want your code to do? Give an example.
What is your code doing that you don''t want it to do? Give an example.
What is your code *not* doing that it is supposed to? Give an example.


你希望你的代码做什么?举个例子。

你的代码是做什么的,你不想要它做什么?举个例子。

你的代码是什么*不是*它应该这样做?举个例子。



我想要
What do you want your code to do? Give an example.
What is your code doing that you don''t want it to do? Give an example.
What is your code *not* doing that it is supposed to? Give an example.



I want


这篇关于如何正确使用$ _SERVER ['PHP_SELF']的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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