Code:
<?php include_once("includes/connection.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" />
<meta name="keywords" content="Integrated Healthcare, Healthcare Solutions, IHS, InteliIChart, Interoperability, NextGen, NextGen EMR, NextGen EHR, NextGen EPM, Data Center, Security, Benchmark IQ, Revenue Cycle, Revenue Cycle Solutions, RCM Suite, Solution, Total Solution, Healthcare Total Solution, Single-Source, Clinical Data-Sharing, Data Share, Data Center Services, Healthcare Services">
<meta name="description" content="Consistently creating value for physician groups by becoming the single-source for fully integrated (EHR, EPM, Interoperability/Clinical Data-Sharing, Data Center Services) healthcare informatics and technology solutions">
<title>Integrated Healthcare Solutions - Innovation at the point of care</title>
<meta http-equiv="Content-Language" content="EN">
<meta name="revisit-after" content="14 days">
<meta name="robots" content="all">
<meta name="Copyright" content="Copyright 2007 Integrated Healthcare Solutions">
<!-- Consistently creating value for physician groups by becoming the single-source for fully integrated (EHR, EPM, Interoperability/Clinical Data-Sharing, Data Center Services) healthcare informatics and technology solutions -->
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/nav.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7]>
<link rel="stylesheet" href="css/ie6.css" />
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="css/ie7.css" />
<![endif]-->
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="lib/prototype.js"></script>
<script type="text/javascript" src="src/scriptaculous.js"></script>
</head>
<?php
//Newsletter submit code
$em = $_POST['em'];
$msg="";
//checks if submit button was pressed
if(isset($_POST['do_send'])) {
//email validation: checks for "@" and "."
if(!stristr($em, "@") OR !stristr($em, ".")) {
$msg = "Invalid email address. Please try again.";
echo "<script type='text/javascript'>alert('" . $msg . "')</script>";
//if valid email
} else {
$query = ("INSERT INTO newsletter (email) VALUES ('$em')");
$result = mysql_query($query);
//if there was an error. we're particularly interested in error 1062: duplicate entries
if(!$result) {
//if duplicate email entry
if(mysql_errno() == 1062) {
$msg = "We\'re sorry but this email already exists in our database. Please try again.";
echo "<script type='text/javascript'>alert('" . $msg . "')</script>";
}
//if email isn't already in the database enter it now
} else {
$msg = "Thank you for subscribing to the IHS newsletter. You can unsubscribe at any time by clicking a link in the email.";
echo "<script type='text/javascript'>alert('" . $msg . "')</script>";
}
}
} /*else {
//Debugging
$msg = "Form didn\'t submit.";
echo "<script type='text/javascript'>alert('" . $msg . "')</script>";
}*/
?>
<body>
<div id="shadow">
<div id="holder">
<div id="head">
<div id="headbg">
<div id="logo"><a href="index.php"><img src="images/logo.png" alt="Integrated Healthcare Solutions" /></a></div>
<div class="newslet" onmouseover="newsLetterOver(this);" onmouseout="newsLetterOut(this);">
<form id="form1" method="post">
Newsletter
<input type="text" value="Enter your email address" name="em" /><input id="newsbtn" name="do_send" type="submit" value="" style="background:transparent url(images/arrow_go.gif) no-repeat; border:none; width:33px; margin:1px 0 0 3px; cursor:hand; cursor:pointer" />
</form>
</div>
<div id="headlinks">
<span>Call us at 704.347.0661</span>
<span><a href="requestDemo.php">Request a Demo</a></span>
<span><a href="contact.php">Contact Us</a></span>
</div>
</div>
</div>
Well here it is. Have away!
I should mention that this is my header.php file which is an include in many other files.
Bookmarks