Krik;10962677 wrote:
I think your confused
I usually am 🙂 - so I think you are correct in this case.
I think what I am confused about this:
$dob = $_POST['year'] . '-' . $_POST['month'] . '-' . $_POST['day'];
What I can't figure out is where to actually put this line in any of the docs. That may seem completely ridiculous to you - but then again, I am still trying to learn everything.
ON the page with the form called in - I have this:
<?php include("forms/config.php"); ?>
<?php $gcSiteId = 12; ?>
<?php
$selectQMem = "SELECT * FROM tbluser WHERE fldId = ".$gcSiteId;
$resMem = mysql_query($selectQMem);
$resArrayMem = mysql_fetch_array($resMem)
?>
I tried adding the merge in that section (just below $selectQMem) - but it didn't work. And it caused no error that I could see when submitting the form.
And, though I had included this file earlier - I revised these lines in memberprocess.php
$sqlAdd = "INSERT INTO tblmember".$gcSiteId." (`fldId`, `fldfirstname`, `fldlastname`, `fldage`, `flddob`, `fldgender`,`fldfavoritedj`, `fldphone`, `fldaddress`, `fldcity`, `fldstate`, `fldzip`, `fldemail`, `fldmarried`, `fldkids`, `fldhomeowner`, `fldincome`, `fldcomments`, `fldactive`)
VALUES ('','".addslashes($_REQUEST['txtFirstName'])."','".addslashes($_REQUEST['txtLastName'])."','".addslashes($_REQUEST['cmbAge'])."','".addslashes($_REQUEST['cmbDob'])."','".addslashes($_REQUEST['rdoGender'])."','".addslashes($_REQUEST['cmbFavoriteDJ'])."','".addslashes($_REQUEST['txtPhone'])."','".addslashes($_REQUEST['txtAddress'])."','".addslashes($_REQUEST['txtCity'])."','".addslashes($_REQUEST['txtState'])."','".addslashes($_REQUEST['txtZip'])."','".addslashes($_REQUEST['txtEMail'])."','".addslashes($_REQUEST['rdoMarried'])."','".addslashes($_REQUEST['rdoKids'])."','".addslashes($_REQUEST['rdoHomeowner'])."','".addslashes($_REQUEST['cmbIncome'])."','".addslashes($_REQUEST['txtComments'])."','".$_REQUEST['rdoActive']."')";
By modify - I mean that I added the instance of cmbDob and the various other new fields that I needed to add.
I then tried to add the line just under that set:
$flddob = $_POST['cmbYear'] . '-' . $_POST['cmbMonth'] . '-' . $_POST['cmbDay'];
Again, no error reported. It process the file file - however, it's not feeding any data into the flddob field in the db. At this point I'm not sure if it's a problem with the PHP (which, since it's not giving errors, I would think it's not) - or with the sql db field.
So at this point:
1 - am I putting the merge line in the correct place? Which of the two locations should I put it? Or is there another place instead?
2 - Any ideas why it wouldn't be feeding that info to the db? Of course, it may be related to #1.
Thanks again for all the tips. I think I'm finally headed in the right direction at least thanks to you.