Missing $dcheck[$check] ";
}
}
if ((!ereg(".+\@.+\..+", $email)) || (!ereg("^[a-zA-Z0-9_@.-]+$", $email))){
$error .= "Invalid email address
";}
if($error) {
?>
",">",$questiona);
$questionb = str_replace("<","<",$questionb);
$questionb = str_replace(">",">",$questionb);
$questionc = str_replace("<","<",$questionc);
$questionc = str_replace(">",">",$questionc);
$questiond = str_replace("<","<",$questiond);
$questiond = str_replace(">",">",$questiond);
$questione = str_replace("<","<",$questione);
$questione = str_replace(">",">",$questione);
$questionf = str_replace("<","<",$questionf);
$questionf = str_replace(">",">",$questionf);
$questiong = str_replace("<","<",$questiong);
$questiong = str_replace(">",">",$questiong);
$questionh = str_replace("<","<",$questionh);
$questionh = str_replace(">",">",$questionh);
$questioni = str_replace("<","<",$questioni);
$questioni = str_replace(">",">",$questioni);
$questionj = str_replace("<","<",$questionj);
$questionj = str_replace(">",">",$questionj);
$questionk = str_replace("<","<",$questionk);
$questionk = str_replace(">",">",$questionk);
$questionl = str_replace("<","<",$questionl);
$questionl = str_replace(">",">",$questionl);
$questionm = str_replace("<","<",$questionm);
$questionm = str_replace(">",">",$questionm);
$questionn = str_replace("<","<",$questionn);
$questionn = str_replace(">",">",$questionn);
$questiono = str_replace("<","<",$questiono);
$questiono = str_replace(">",">",$questiono);
$questionp = str_replace("<","<",$questionp);
$questionp = str_replace(">",">",$questionp);
$questionq = str_replace("<","<",$questionq);
$questionq = str_replace(">",">",$questionq);
$questionr = str_replace("<","<",$questionr);
$questionr = str_replace(">",">",$questionr);
$questions = str_replace("<","<",$questions);
$questions = str_replace(">",">",$questions);
$questiont = str_replace("<","<",$questiont);
$questiont = str_replace(">",">",$questiont);
endif;
$name = str_replace("<","<",$name);
$name = str_replace(">",">",$name);
$name = str_replace("|","l",$name);
$name = stripslashes($name);
$email = str_replace("<","<",$email);
$email = str_replace(">",">",$email);
$email = str_replace("|","l",$email);
$questiona = str_replace("\r\n"," ",$questiona);
$questiona = str_replace("\r\n"," ",$questiona);
$questiona = str_replace("|","l",$questiona);
$questiona = str_replace("\n"," ",$questiona);
$questiona = stripslashes($questiona);
$questionb = str_replace("\r\n"," ",$questionb);
$questionb = str_replace("\r\n"," ",$questionb);
$questionb = str_replace("|","l",$questionb);
$questionb = str_replace("\n"," ",$questionb);
$questionb = stripslashes($questionb);
$questionc = str_replace("\r\n"," ",$questionc);
$questionc = str_replace("\r\n"," ",$questionc);
$questionc = str_replace("|","l",$questionc);
$questionc = str_replace("\n"," ",$questionc);
$questionc = stripslashes($questionc);
$questiond = str_replace("\r\n"," ",$questiond);
$questiond = str_replace("\r\n"," ",$questiond);
$questiond = str_replace("|","l",$questiond);
$questiond = str_replace("\n"," ",$questiond);
$questiond = stripslashes($questiond);
$questione = str_replace("\r\n"," ",$questione);
$questione = str_replace("\r\n"," ",$questione);
$questione = str_replace("|","l",$questione);
$questione = str_replace("\n"," ",$questione);
$questione = stripslashes($questione);
$questionf = str_replace("\r\n"," ",$questionf);
$questionf = str_replace("\r\n"," ",$questionf);
$questionf = str_replace("|","l",$questionf);
$questionf = str_replace("\n"," ",$questionf);
$questionf = stripslashes($questionf);
$questiong = str_replace("\r\n"," ",$questiong);
$questiong = str_replace("\r\n"," ",$questiong);
$questiong = str_replace("|","l",$questiong);
$questiong = str_replace("\n"," ",$questiong);
$questiong = stripslashes($questiong);
$questionh = str_replace("\r\n"," ",$questionh);
$questionh = str_replace("\r\n"," ",$questionh);
$questionh = str_replace("|","l",$questionh);
$questionh = str_replace("\n"," ",$questionh);
$questionh = stripslashes($questionh);
$questioni = str_replace("\r\n"," ",$questioni);
$questioni = str_replace("\r\n"," ",$questioni);
$questioni = str_replace("|","l",$questioni);
$questioni = str_replace("\n"," ",$questioni);
$questioni = stripslashes($questioni);
$questionj = str_replace("\r\n"," ",$questionj);
$questionj = str_replace("\r\n"," ",$questionj);
$questionj = str_replace("|","l",$questionj);
$questionj = str_replace("\n"," ",$questionj);
$questionj = stripslashes($questionj);
$questionk = str_replace("\r\n"," ",$questionk);
$questionk = str_replace("\r\n"," ",$questionk);
$questionk = str_replace("|","l",$questionk);
$questionk = str_replace("\n"," ",$questionk);
$questionk = stripslashes($questionk);
$questionl = str_replace("\r\n"," ",$questionl);
$questionl = str_replace("\r\n"," ",$questionl);
$questionl = str_replace("|","l",$questionl);
$questionl = str_replace("\n"," ",$questionl);
$questionl = stripslashes($questionl);
$questionm = str_replace("\r\n"," ",$questionm);
$questionm = str_replace("\r\n"," ",$questionm);
$questionm = str_replace("|","l",$questionm);
$questionm = str_replace("\n"," ",$questionm);
$questionm = stripslashes($questionm);
$questionn = str_replace("\r\n"," ",$questionn);
$questionn = str_replace("\r\n"," ",$questionn);
$questionn = str_replace("|","l",$questionn);
$questionn = str_replace("\n"," ",$questionn);
$questionn = stripslashes($questionn);
$questiono = str_replace("\r\n"," ",$questiono);
$questiono = str_replace("\r\n"," ",$questiono);
$questiono = str_replace("|","l",$questiono);
$questiono = str_replace("\n"," ",$questiono);
$questiono = stripslashes($questiono);
$questionp = str_replace("\r\n"," ",$questionp);
$questionp = str_replace("\r\n"," ",$questionp);
$questionp = str_replace("|","l",$questionp);
$questionp = str_replace("\n"," ",$questionp);
$questionp = stripslashes($questionp);
$questionq = str_replace("\r\n"," ",$questionq);
$questionq = str_replace("\r\n"," ",$questionq);
$questionq = str_replace("|","l",$questionq);
$questionq = str_replace("\n"," ",$questionq);
$questionq = stripslashes($questionq);
$questionr = str_replace("\r\n"," ",$questionr);
$questionr = str_replace("\r\n"," ",$questionr);
$questionr = str_replace("|","l",$questionr);
$questionr = str_replace("\n"," ",$questionr);
$questionr = stripslashes($questionr);
$questions = str_replace("\r\n"," ",$questions);
$questions = str_replace("\r\n"," ",$questions);
$questions = str_replace("|","l",$questions);
$questions = str_replace("\n"," ",$questions);
$questions = stripslashes($questions);
$questiont = str_replace("\r\n"," ",$questiont);
$questiont = str_replace("\r\n"," ",$questiont);
$questiont = str_replace("|","l",$questiont);
$questiont = str_replace("\n"," ",$questiont);
$questiont = stripslashes($questiont);
$browser = $HTTP_USER_AGENT;
$ip = $REMOTE_ADDR;
$date = date("F j, Y \a\\t g.i a" );
$post = "
| |
Name |
|
| |
$name |
|
| |
Date: |
|
| |
$date
|
|
| |
Where did Margaret and Catlin first meet?
and when did they meet? $questiona |
|
| |
What was Margaret’s first impression of Catlin?
and What was Catlin’s first impression of Margaret? $questionb |
|
| |
Who made the first move and how?
$questionc |
|
| |
When did they start dating? and
Where was the first date?
$questiond |
|
| |
What did they do on the first date? $questione |
|
| |
How was the first date? $questionf |
|
| |
How many dates before things started getting serious? $questiong |
|
| |
How long were they dating before they moved in together? $questionh |
|
| |
When did they decide to get married? $questioni |
|
| |
Where did they become engaged?
$questionj |
|
| |
Who was the first person they told? $questionk |
|
| |
Who was the first person they told live and face-to-face? $questionl |
|
| |
After the Thong Song by Sisqo, what’s their favorite song?
$questionm |
|
| |
n how many countries have Margaret and Catlin smooched? Name them.
$questionn |
|
| |
What are our most commonly used nicknames for each other? $questiono |
|
| |
What do we call our biological grandmothers? $questionp |
|
| |
What is our favorite flavor of ice cream? $questionq |
|
| |
How are Catlin and Margaret known to weight themselves down when going on vacation? $questionr |
|
| |
What is a favorite traveling pastime of Margaret’s and Catlin’s?
$questions |
|
| |
What is their preferred hot drink in the morning? $questiont |
|
\n\n";
$inc = "answers01.inc";
$book = fopen("$inc", "r+");
// if guestbook.inc won't open
if(!$book) die ("Error reading file.");
// write new entry to top of file
flock($book,1);
$old_data = fread($book, filesize($inc));
rewind($book);
fwrite($book, "$post" . $old_data);
flock($book,3);
fclose($book);
// format notification email
$message = "$subject:
Name: $name
Email: $email
Where did Margaret and Catlin first meet?
When did they meet?
: $questiona
What was Margaret’s first impression of Catlin?
What was Catlin’s first impression of Margaret?
: $questionb
Who made the first move and how?: $questionc
When did they start dating? and
Where was the first date?: $questiond
What did they do on the first date?: $questione
How was the first date?: $questionf
How many dates before things started getting serious?: $questiong
How long were they dating before they moved in together?: $questionh
When did they decide to get married?: $questioni
Where did they become engaged?
: $questionj
Who was the first person they told?
: $questionk
Who was the first person they told live and face-to-face?: $questionl
After the Thong Song by Sisqo, what’s their favorite song?: $questionm
In how many countries have Margaret and Catlin smooched? Name them.: $questionn
What are our most commonly used nicknames for each other?: $questiono
What do we call our biological grandmothers?: $questionp
What is our favorite flavor of ice cream?: $questionq
How are Catlin and Margaret known to weight themselves down when going on vacation?: $questionr
What is a favorite traveling pastime of Margaret’s and Catlin’s?: $questions
What is their preferred hot drink in the morning?: $questiont
-----------------------------
Browser: $browser
User IP: $ip";
mail($recipientemail,"$subject","$message","From: $name <$email>");
if($autoresponse == "yes") {
$autosubject = stripslashes($autosubject);
$automessage = stripslashes($automessage);
mail($email,"$autosubject","$automessage","From: $recipientname <$recipientemail>");
}
echo " $thanks
";
}
}
// if the form has not been submitted yet, display the following
else {
?>
Trivia Questions Margaret & Catlin
|