It was made about a year ago and had been working fine. Last time it was known to work for sure was in early October. I got a message from someone saying they didn't think it work and I tried it through both Firefox and IE and it didn't work.
What it does do right now is load up fine but when you fill out the form and hit submit it just clears the form. Since it's having the same issue on two different browsers I'm wondering if maybe my host (yahoo) did something or if it's some universal browser change. Any help would be great because I don't see anything wrong with it but I'm far from an expert. I just need to get it working again.
Also here is the website to where it is if you want to see how it acts.
http://www.thebrocadeblackbird.com/ then click on anything and then go to consultation.
Code: <html>
<head>
<style type="text/css">
head { margin: 0 0 0 0 }
body { margin: 0 0 0 0 }
img
{
position:absolute;
top:0px;
left:20px;
}
div.alertone
{
position:absolute;
top:10px;
left:295px;
z-index: 1;
}
div.alerttwo
{
position:absolute;
top:30px;
left:68px;
z-index: 1;
}
div.alertthree
{
position:absolute;
top:10px;
left:45px;
z-index: 1;
}
div.one
{
position:absolute;
top:35px;
right:355px;
z-index: 1;
}
div.two
{
position:absolute;
top:35px;
right:50px;
z-index: 1;
}
div.three
{
position:absolute;
top:74px;
right:355px;
z-index: 1;
}
div.four
{
position:absolute;
top:72px;
right:103px;
z-index: 1;
}
div.five
{
position:absolute;
top:112px;
right:355px;
z-index: 1;
}
div.six
{
position:absolute;
top:112px;
right:50px;
z-index: 1;
}
div.seven
{
position:absolute;
top:145px;
right:505px;
z-index: 1;
}
div.eight
{
position:absolute;
top:145px;
right:48px;
z-index: 1;
}
div.nine
{
position:absolute;
top:73px;
right:50px;
z-index: 1;
}
div.submit
{
position:absolute;
top:240px;
right:60px;
z-index: 1;
}
div.required
{
position:absolute;
top:338px;
right:285px;
font-size: 85%;
color: #808284;
z-index: 1;
}
</style>
</head>
<body>
<?php
# ATTENTION! - IF YOU COPY THIS CODE, CHANGE THE NEXT LINE!
$to = "design@thebrocadeblackbird.com";
$ask = 0;
if (($FName == "") && ($Email == "") && ($PriPhone == "") && ($TimeContact == "") && ($TypeEvent == "") && ($DateEvent == "") && ($Additional == ""))
{
$ask = 1;
}
elseif (($FName == "") || ($Email == "") || ($TypeEvent == "") || ($DateEvent == ""))
{
$ask = 1;
echo "<div class='alertone'>You missed some fields.</div>";
}
if ($ask == 1)
{
echo "
<img src='Consultation_BlueBox.jpg' />
<form name='form' method='post' action='Formmiddle.php'>
<div class='one'><font color='#808284'>*</font>Name <input type='text' name='FName' value='$FName' size='20'></div>
<div class='two'><font color='#808284'>*</font>E-Mail Address <input type='text' name='Email' value='$Email' size='20'></div>
<div class='three'>Phone Number <input type='text' name='PriPhone' value='$PriPhone' size='20'></div>
<div class='four'>Best Time to Contact <input type='text' name='TimeContact' value='$TimeContact' size='11'></div><div class='nine'><select name='AMPM' value='$AMPM'><option value='AM'>am</option><option value='PM'>pm</option></select></div>
<div class='five'><font color='#808284'>*</font>Type of Event <input type='text' name='TypeEvent' value='$TypeEvent' size='20'></div>
<div class='six'><font color='#808284'>*</font>Date of Event <input type='text' name='DateEvent' value='$DateEvent' size='20'></div>
<div class='seven'>Additional Notes </div><div class='eight'><textarea name='Additional' rows='4' cols='54' wrap='hard'>$Additional</textarea></div>
<div class='required'>*required fields</div>";
echo "<div class='submit'><input type='image'SRC='SubmitBox.jpg'></div>";
echo "</form>";
}
else
{
$message = "Name: $FNamenE-mail: $EmailnPrimary Phone: $PriPhonenBest Time to Contact: $TimeContact $AMPMnType of Event: $TypeEventnDate of Event: $DateEventn Additional: $Additionaln";
$eLog="/tmp/mailError.log";
//Get the size of the error log
//ensure it exists, create it if it doesn't
$fh= fopen($eLog, "a+");
fclose($fh);
$originalsize = filesize($eLog);
mail ($to, "Website Email", $message);
/*
* NOTE: PHP caches file status so we need to clear
* that cache so we can get the current file size
*/
clearstatcache();
$finalsize = filesize($eLog);
//Check if the error log was just updated
if ($originalsize != $finalsize) {
print "<div class='alertthree'>There was a problem sending the mail. Please try again later or send the message to<a href="$to">$to</a> using your own mail client progam.</div>";
} else {
echo "<div class='alerttwo'>Thank you for your interest in The Brocade Blackbird. You will be contacted shortly.</div> <img src='Consultation_BlueBox.jpg' />";
}
}
?>
</body>
</html>
CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones I could give a try? I was going to script one but what I want it for was confusing me when I was
Problem with PHP code- simple contact form
Hi Folks, I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a contact form with PHP code in it- grabbed it from the sitemaster website. Unfortunately my form isn't
preg_match logical error
Code: <?php$s = file_get_contents("page.html");preg_match('/<div class="brown_box main_ge_page vertically_spaced"><div
Echoing If Function?
A script I am using has If statements in the comments form to basically tell the form what to do. Currently the form works by opening in a pop up for those who want to read/write comments. I'm
How do I give a developer access to a specific directory and nothing else?
I want to give a develop access to a specific directory and nothing elseI can give them an FTP account with access to a sub directory, but this doesn't exactly solve the problem!1. They can write PHP
rdns with php
I am trying to build a script that will show all of the different domains that are hosted on the same ip. However when I do a rdns lookup with php only 1 of the domains is returned. How can I make it
please fix the error
What is the error in the below code ???Line number On/Off | Expand/Contract <?php if(array_key_exists_r('email|password', $_POST)) { include_once('database.php');
Web Host List
Here is a list of web hosts that offer PHP and MySQL. It is no where near a full list, but it is most popular. I'm locking this so you can't reply. I am pulling this list from the most popular google
need help modifying script
Hi guys,I'm fairly new to php and am having a bit of trouble modifying a script.This is the script:Code: <?php##############################################################################
check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard method used for checking to see if a value exists in a database before inserting a value? I have a form,