PHP�ⲿ����

HTML����(GET��POST)

IMAGE SUBMIT ������

���ύһ������ʱ������ͨ����������һ��ͼ�����׼���ύ��ť��

<input type=image src="image.gif" name="sub">

���û������ͼʱ���������ӱ���sub_x��sub_y�ͻ�������һ���͵�server�ϡ����а������û���ͼ�ϵ���������ꡣ�о�����˿���ע�⵽�����ʵ���ͳ������ְ���һ����Ŷ������»���,��PHP�Զ������ת�������»��ߡ�

HTTP Cookies

PHP��Ȼ֧��Netscape's Spec�����HTTP cookies��Cookies�ڿͻ���������洢���ݣ��Դ˺��û������������֤�û����ݡ�    �����ʹ��setcookie() ����������cookies�� Cookies��HTTP����ͷ��һ���֣����Ա������κ�������ݷ��ظ��û������ǰ����SetCookie()�������������� Header() ���������ơ��κ��û��˷��ص�cookies�������Զ�ת��Ϊ��׼��PHP����������GET��POST���������ݡ�

���Ҫ��һ�� cookie�����ö��ֵ��Ҫ�����cookie�����ּ��� [] ,���磺

SetCookie("MyCookie[]","Testing", time()+3600);
     

ע�⣺�µ�cookie�����ǵ��������������е�ͬ��cookie���������Ǿ��в�ͬ��·��������ˣ���������������͹��ﳵ���ۼƼ��������磺

Example 5-2. SetCookie Example

$Count++;
SetCookie("Count",$Count, time()+3600);
SetCookie("Cart[$Count]",$item, time()+3600);
     

����variables

PHP�Զ�����������ת��Ϊ��ͨ�ı�����

echo $HOME;  /* Shows the HOME environment variable, if set. */
    

��������GET,POST �� Cookie�ṹ����ϢҲ�ᱻ�Զ�ת��ΪPHP�ı���, �������ȷ�Ĵӻ��������ж�ȡ������ȷ�������ȷ��ֵ��Ϊ�˿�ʹ�� getenv() ������Ҳ����ͨ�� putenv() �������ñ�����

����������ָ��