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: 
Code:
<form id="emailbox" name="form1" method="post" action="Scripts/email.php">
<div>
<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()" />
</div>
</form>
This is the current draft of PHP I'm drawing up:
Code:
<?php
//This is the scripting section for the e-mail collection box.
$email = " ";
function showWindowAndValidate()
{
echo'<div id="activeemailbox"><input type="checkbox" value="Yes\, I would like to join the mailing list."></p>';
}
if (isset($_POST["go"])
$email = $_POST["go"];
if (isItAValidEmail())
//send me an e-mail and a bunch of other crazy stuff
else
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 */
function isItAValidEmail()
{
$lastChars = " ";
$lastChar = $
//preg match on $email
}
function invalidEntry()
{
//go back to the main home page screen
}
//end e-mail box scripting section
?>
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.
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
Bookmarks