but what i dont get is this:
i used $variables like that in radio buttons higher up and they get defined..
there is a datepicker that logs the date (and gives a day)
and 3 radio buttons that divide the day in 3 sections..
e.g. if (monday) and (afternoon) >> a whole lot of html code, including forms etc
what you did passes the radio buttons but does not pass the $flag..
have a look at the initial php code for the page.. please
for example the $shift belongs to radio buttons prior to the code i enquire about but gets defined..
3 lines later and the $flag gets flagged up..
i dont know maybe i make no sense..
<?php
$name = $notes = $shift = $actName = $flag = "";
$rawDate ="select date";
include 'connection.php';
if(isset($_POST['submit'])){
$rawDate = $_POST['datepicker'];
$xplod = explode(' ', $rawDate);
$stringDate = "$xplod[3]-$xplod[2]-$xplod[1]";
$phpDate = date("Y-m-d", strtotime($stringDate));
$dayDate = "$xplod[0]";
$shift = $_POST['shift'];
$name = $_POST['name'];
$notes = $_POST['notes'];
$actName = 'activity one';
$flag = $_POST['flag'];
mysql_query("INSERT INTO form1notes (`ID`,`date`,`day`,`shift`,`name`,`notes`,`flag`)
VALUES (NULL,'$phpDate','$dayDate','$shift','$name','$notes','$flag')");
}
?>