-
متغیر $PHP_SELF
سلام
یه نفر میگه کاره این متغیر چی هست در PHP
مثلا در این کد کارش چیه و چرا اینطور استفاده شده؟
کد:
global $userid,$username,$usercountry,$useremail,$userprofile,$country_array;
global $PHP_SELF;
?>
<center><h4> create your account!!!</h4></center>
<form method="post" action="<?php echo $PHP_SELF ?>">
<input type="hidden" name="action" value="register" />
<div align="center"><center><table border="2" width="60%">
<tr>
<th width="30%" nowrap="nowrap">desired id</th>
<td width="70%"><input type="text" name="userid"
value="<?php echo $userid ?>"
size="8" maxlength="8" /></td>
-
فکر کنم متغیر $PHP_SELF یک متغیر از پیش تعریف شده هستش که کارش ذخیره مسیره صفحه ی جاری هستش.