我創建了兩個變量,這兩個變量正在使用無處不在。我不想將這些變量存儲到數據庫中,例如 ( $ username,$ password並且有3個文件使用這些變量load.php,index.php和add.php,我也使用jquery來加載add .PHP如AJAX(添加的用戶在JSON)PHP變量的幾個文件,包括jquery
$.ajax({
type: "POST",
url: "add.php",
data: "twitter="+encodeURIComponent(twitter),
/* Sending the filled in twitter name */
success: function(msg){
/* PHP returns 1 on success, and 0 on error */
var status = parseInt(msg);
if(status)
{
$('#response').html('Thank you ');
$('#twitterName').val('');
}
else
$('#response').html('<span style="color:red">There is no user.</span>');
}
});
如何可以在單個文件中使用這兩個變量來執行整個操作
由於