Yes, this was a very elaborate response. Thank you!
After reviewing your post's info in detail, delving into PHP 6 & MySQL 5 by Larry Ullman (and installing a testing server on this machine using XAMPP), I have some questions.
For the HTML markup, this is what I've compiled there:
This is the current draft of PHP I'm drawing up:
<form id="emailbox" name="form1" method="post" action="Scripts/email.php">
<input type="text" name="go" id="go" value="your e-mail" onclick="input_focus(this)" onblur="input_reset(this)"/>
<input type="submit" value="Join" onclick="showWindowAndValidate()" />
Note that this draft contains another objective, giving an error screen that will turn the user back to the home page when the e-mail has been declared invalid by my functions. I'm lost there.
//This is the scripting section for the e-mail collection box.
$email = " ";
echo'<div id="activeemailbox"><input type="checkbox" value="Yes\, I would like to join the mailing list."></p>';
$email = $_POST["go"];
//send me an e-mail and a bunch of other crazy stuff
echo'<div id="activeemailbox"><p id="error">You didn\'t enter an email, silly!</p><input type="submit" value="Go Back" onclick="invalidEntry()"></div>';
/*test the e-mail address submission for valid entry */
$lastChars = " ";
$lastChar = $
//preg match on $email
//go back to the main home page screen
//end e-mail box scripting section
I'd also like to make my home page go into a dark gray overlay, making it look inactive, while the user is interacting with the e-mail list part.
(That may be a CSS question)
I'd also like to find out why I'm getting a syntax error around the only conditional statement in the script so far.
Parse error: syntax error, unexpected '$email' (T_VARIABLE) in C:\xampp\htdocs\index.php on line 392