WinterDragon & daynah kindly responded.
RE:
// If the form is submitted
if (isset($_POST['submit']))
{
// Validate the data
if( everything is correct )
{
Ah ha...so this is where the matching statements & validation stuff will go. Thanks.
Now, above this ... is this where I have to define some $variables? I'm still stuck on this.
Like if I have: firstname as a text entry field, how do I handle the variable assignment?
Is it: $firstname = $_POST['firstname];
...or something else? And, I assume I must do this for all 15 or so form field names/variables?
But I still don't know how to handle the ID situation with the 2 tables. Actually, if the form submitter is already on file with info contained in table2 in the DB, hmmm...perhaps I must first Query the DB to see if maybe a combination of lastname & phone number already exist, and if so, to auto-populate the form fields which feed the MySQL table2???
RE:
else
{
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
// print your email form -- input, textboxes, etc here
echo '</form>';
}
Is there any way to utilize straight html (non-PHP/echo) for the form part? If not, I guess I need to escape all quotes, etc.???
Thank you.
BTW (daynah) ... "PHP Princess" - what a COOL name 😃
FYI, your picture is sideways...did you know this...or maybe on my end only???