Alright... this should be easy with the following steps.
Put the following lines of code between the <head>...</head> codes:
<script type="text/javascript" src="js/functionAddEvent.js"></script>
<script type="text/javascript" src="js/contact.js"></script>
<script type="text/javascript" src="js/xmlHttp.js"></script>
<style type='text/css' media='screen,projection'>
<!--
body { margin:20px auto;width:600px;padding:20px;border:1px solid #ccc;background:#fff;font-family:georgia,times,serif; }
fieldset { border:0;margin:0;padding:0; }
label { display:block; }
input.text,textarea { width:300px;font:12px/12px 'courier new',courier,monospace;color:#333;padding:3px;margin:1px 0;border:1px solid #ccc; }
input.submit { padding:2px 5px;font:bold 12px/12px verdana,arial,sans-serif; }
-->
</style>
- <script type="text/javascript" src="js/functionAddEvent.js"></script>
- <script type="text/javascript" src="js/contact.js"></script>
- <script type="text/javascript" src="js/xmlHttp.js"></script>
- <style type='text/css' media='screen,projection'>
- <!--
- body { margin:20px auto;width:600px;padding:20px;border:1px solid #ccc;background:#fff;font-family:georgia,times,serif; }
- fieldset { border:0;margin:0;padding:0; }
- label { display:block; }
- input.text,textarea { width:300px;font:12px/12px 'courier new',courier,monospace;color:#333;padding:3px;margin:1px 0;border:1px solid #ccc; }
- input.submit { padding:2px 5px;font:bold 12px/12px verdana,arial,sans-serif; }
- -->
- </style>
And put the following where you want the form to show:
<p id="loadBar" style="display:none;">
<strong>Sending Email via slick AJAX. Hold on just a sec…</strong>
<img src="img/loading.gif" alt="Loading..." title="Sending Email" />
</p>
<p id="emailSuccess" style="display:none;">
<strong style="color:green;">Success! Your Email has been sent.</strong>
</p>
<div id="contactFormArea">
<form action="scripts/contact.php" method="post" id="cForm">
<fieldset>
<label for="posName">Name:</label>
<input class="text" type="text" size="25" name="posName" id="posName" />
<label for="posEmail">Email:</label>
<input class="text" type="text" size="25" name="posEmail" id="posEmail" />
<label for="posRegard">Regarding:</label>
<input class="text" type="text" size="25" name="posRegard" id="posRegard" />
<label for="posText">Message:</label>
<textarea cols="50" rows="5" name="posText" id="posText"></textarea>
<label for="selfCC">
<input type="checkbox" name="selfCC" id="selfCC" value="send" /> Send CC to self
</label>
<label>
<input class="submit" type="submit" name="sendContactEmail" id="sendContactEmail" value=" Send Email " />
</label>
</fieldset>
</form>
</div>
- <p id="loadBar" style="display:none;">
- <strong>Sending Email via slick AJAX. Hold on just a sec…</strong>
- <img src="img/loading.gif" alt="Loading..." title="Sending Email" />
- </p>
- <p id="emailSuccess" style="display:none;">
- <strong style="color:green;">Success! Your Email has been sent.</strong>
- </p>
- <div id="contactFormArea">
- <form action="scripts/contact.php" method="post" id="cForm">
- <fieldset>
- <label for="posName">Name:</label>
- <input class="text" type="text" size="25" name="posName" id="posName" />
- <label for="posEmail">Email:</label>
- <input class="text" type="text" size="25" name="posEmail" id="posEmail" />
- <label for="posRegard">Regarding:</label>
- <input class="text" type="text" size="25" name="posRegard" id="posRegard" />
- <label for="posText">Message:</label>
- <textarea cols="50" rows="5" name="posText" id="posText"></textarea>
- <label for="selfCC">
- <input type="checkbox" name="selfCC" id="selfCC" value="send" /> Send CC to self
- </label>
- <label>
- <input class="submit" type="submit" name="sendContactEmail" id="sendContactEmail" value=" Send Email " />
- </label>
- </fieldset>
- </form>
- </div>
I think that would be it... don't forget to put the included files in the correct directories, or if you need them in a different directory, don't forget to edit the
src in the inclusion HTML (The parts that goes between the <head>...</head>).
"Bring forth therefore fruits meet for repentance:" Matthew 3:8