<?php
session_start(); // First thing... every time
require_once("connect.php"); if(!isset($_SESSION['username'])){
header('Location: login.php'); the top
exit; // Always include after redirect.
}
if(isset($_POST['submit'])){
$sql = "UPDATE user SET atten
我正在收集Facebook用户的信息,然后注册。如何在ajax中包含多个值?
$.signuser = function () {
FB.api('/me', function (response) {
var str = "";
alert(response.name);
var fbfname = response.first_name;
var fblname = response.last_name;
var fblname = response.id;
session_start();
include 'assets/config.php';
if(isset($_POST['username'])){
$queryIsUsername = ("SELECT count(user) FROM users WHERE user = '$_POST['username']'"); //Error
$actionQueryIsUsername = mysql_query($queryIsUsername);
while($rowIsUsern