this is my project
http://www.pinkangel4u.com/truthdare/Game/index.php
you can login with ussername=chris pass=smith
the gameboard can seen here so you can get a gist of my full project
http://www.pinkangel4u.com/truthdare/Game/gameboard.php'
anyways i am having trouble getting the following form details when entered to be sent and added to the database
<?php
function create_game($playername, $sex)
{
if($_POST){
foreach($_POST['player'] as $post_key){
$query_string .= " ('".$post_key[sex]."', '".$post_key[playername]."'),"; }
$query_string = substr_replace($query_string,"",-1);
// store the information in the database
$query = "insert into game (playername, sex) values ('.$query_string')";
$result=mysql_query($query) or die ('Could not add players.');
// if suceesfully inserted data into database, send confirmation link to email
if($result)
{
header('Location: http://www.pinkangel4u.com/truthdare/Game/gameboard.php');
}
}
?>
please help
christine xxx