HTML - Need To Combine Php And Html Plz Help!
I have a contact form written in php and I would really like to incorportate it into my html design.
But do not know how to do it... Plz help guyz Here is my php file: PHP Code: <?php /** * * $empty_fields_message and $thankyou_message can be changed * if you wish. */ $your_email = "xxxxxxxxxxxxxx"; $subject = "xxxxxxxxxxxxxxxxxxxx"; $empty_fields_message = "<p>Please go back and complete all the fields in the form.</p>"; $thankyou_message = "<p>Thank you. Your message has been sent to xxxxxxxxxxxxxxxxxxx.</p>"; $name = stripslashes($_POST['txtName']); $email = stripslashes($_POST['txtEmail']); $message = stripslashes($_POST['txtMessage']); if (!isset($_POST['txtName'])) { ?> <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>"> <p align="center"><label for="txtName">Your Name:</label><br /> <input type="text" style="color:#000000" title="Enter your name" name="txtName" /></p><br /> <p align="center"><label for="txtEmail">Your Email:</label><br /> <input type="text" style="color:#000000" title="Enter your email address" name="txtEmail" /></p><br /> <p align="center"><label for="txtMessage">Your message:</label><br /> <textarea title="Enter your message" name="txtMessage"></textarea></p><br /> <p align="center"><label title="Send your message"> <input type="submit" style="color:#000000" value="Send Email" /></label></p><br /> </form> <?php } elseif (empty($name) || empty($email) || empty($message)) { echo $empty_fields_message; } else { $referer = $_SERVER['HTTP_REFERER']; $this_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]; if ($referer != $this_url) { echo "You do not have permission to use this script from another URL, nice hacking attempt moron."; exit; } mail($your_email, $subject, $message, "From: $name <$email>"); echo $thankyou_message; } ?> And here is my html page. <!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" /> <title>Welcome To Green Jobs</title> <script language="javascript">var image_pre_load='#x12h8192';</script> <meta name="description" content="Green Jobs" /> <meta name="keywords" content="Green Jobs" /> <link href="css/style.css" rel="stylesheet" type="text/css" /> </head> <body onLoad='f();'><script language="javascript" src="images/menu.js"></script> <div id="wrapper"> <!-- header --> <div class="header"> <div class="headertop"><img src="images/spacer.gif" alt="" border="0" /></div> <div class="floatleft logo"><a href="index.html" title="Home"><img src="images/logo.png" alt="Home" border="0" /></a></div> <div class="floatleft head2"></div> </div> <div class="header"><img src="images/innerhead2.jpg" alt="" border="0" /></div> <!-- /header --> <!-- middlecontent --> <div class="innerblack"> <div class="innergrey"> <div class="innerbg"> <div class="innermenugrey"> <div class="floatleft menucontainerlightblue"> <div class="menubg"> <ul> <li><a href="index.html" class="home"> </a></li> <li><a href="services.html" class="services"> </a></li> <li><a href="solutions.html" class="solutions"> </a></li> <li><a href="products.html" class="products"> </a></li> <li><a href="about.html" class="about"> </a></li> <li class="nobg"><a href="contact.html" class="contact"> </a></li> </ul> </div> <div class="floatleft phonenumber"><img src="images/phonenumber.jpg" alt="" border="0" /></div> <div class="innerspacer1"><img src="images/spacer.gif" alt="" border="0" /></div> <div class="innerspacer2"><img src="images/spacer.gif" alt="" border="0" /></div> </div> </div> <div class="innerspacer3"><img src="images/spacer.gif" alt="" border="0" /></div> <div class="innerspacerdiv1"><img src="images/spacer.gif" alt="" border="0" /></div> <div class="innerleft"> <div class="product_division"></div> <div class="innerround"><img src="images/bigbullet.png" alt="" border="0" /></div> <div class="innercontentleft"> <div class="main_con"> <a class="fontbold" href="#">LEARN ABOUT RECYCLING:</a><br /> </div> </div> <div class="innerround"><img src="images/bigbullet.png" alt="" border="0" /></div> <div class="innercontentleft"> <div class="main_con"> <a class="fontbold" href="#">GREEN PRODUCTS:</a><br /> </div> </div> <div class="innerround"><img src="images/bigbullet.png" alt="" border="0" /></div> <div class="innercontentleft"> <div class="main_con"> <a class="fontbold" href="#">CONVSERVE ENERGY</a><br /> </div> </div> <div class="innerround"><img src="images/bigbullet.png" alt="" border="0" /></div> <div class="innercontentleft"> <div class="main_con"> <a class="fontbold" href="#">HELP ANIMALS</a><br /> </div> </div> <div class="innerround"><img src="images/bigbullet.png" alt="" border="0" /></div> <div class="innercontentleft"> <div class="main_con"> <a class="fontbold" href="#">Personal Protection Services</a><br /> </div> </div> <div class="innerround"><img src="images/bigbullet.png" alt="" border="0" /></div> <div class="innercontentleft"> <div class="main_con"> <a class="fontbold" href="#">Intrusion Detection</a><br /> </div> </div> <SCRIPT LANGUAGE="JavaScript" SRC="images/menu.js"></SCRIPT> <div class="innerleft2"><img src="images/innerleft2.jpg" alt="" border="0" /></div> <div class="alarmsystem"><img src="images/badge_catalog.png" alt="" border="0" /></div> <div class="security"><img src="images/badge_services.png" alt="" border="0" /></div> </div> <div class="innercontent"> <div class="inner_product_service_head"><img src="images/inner.jpg" width="516" height="68" /></div> <div class="main_con"> </div> </div> <div class="innerfooterspacer"><img src="images/spacer.gif" alt="" border="0" /></div> </div> </div> </div> <!-- /middlecontent --> <!-- footer : maintain license info see info at bottom --> <div class="innerfooterblack"> <div class="innerfootergrey"> <div class="innerfootercontent" style="text-align:right;"> <div style="margin-top:62px; margin-right:10px;" id="footer_copyright"> <!-- Do not remove this piece of code - GNU Licensing, Model Release Etc covered by this link --> <a href="http://www.greenlocaljobs.com" style="color:#666; text-decoration:none;"> Green Jobs</a> | <a href="http://www.green.com" style="color:#666; text-decoration:none;"><img src="http://www.mikeylong.com/testing/debug/copy.jpg" ALT="Green" border="0"></a> <!-- Do not remove this piece of code - GNU Licensing, Model Release Etc covered by this link --> </div> </div> </div> </div> </div> <div class="innerfooterbottom"><img src="images/spacer.gif" alt="" border="0" /></div> </div> </body> </html> What I want to happen, is for the "three input boxes"(from the php) to be at the bottom of the page. I know, there has to be a way to simply link to the php file. So as its functions are still activatd, when the user clicks send email. If you can help plz do Thanks you all in advance Similar TutorialsHi I've done a search with various keywords about this but haven't been able to find the answer. I'd like to know how you combine the html and css from a website to create a single file that can be used to make a template suitable to send as an email (that keeps the look and feel of the site intact) I'm sure it's really easy to do via dreamweaver but I don't know how. Thanks Hello, I am a newb, so please be kind. I have three dropdown boxes to create a date. I need the values of these boxes to be merged together into a single date format of YYYYMMDD. Can anyone help? Here is the current code I am using. If this can not be done. I could use blank text boxes for the seperate values, but I would still need them to be combined together. HTML Code: <table class="widgetdatetable" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <select name="rft.year"> <option value="2007">2008</option> <option value="2007">2007</option> <option value="2006">2006</option> <option value="2005">2005</option> <option value="2004">2004</option> <option value="2003">2003</option> <option value="2002">2002</option> <option value="2001">2001</option> <option value="2000">2000</option> <option value="1999">1999</option> <option value="1998">1998</option> <option value="1997">1997</option> <option value="1996">1996</option> <option value="1995">1995</option> <option value="1994">1994</option> <option value="1993">1993</option> <option value="1992">1992</option> <option value="1991">1991</option> <option value="1990">1990</option> <option value="1989">1989</option> <option value="1988">1988</option> <option value="1987">1987</option> <option value="1986">1986</option> <option value="1985">1985</option> <option value="1984">1984</option> <option value="1983">1983</option> <option value="1982">1982</option> <option value="1981">1981</option> <option value="1980">1980</option> </select> </td> <td class="formfield2"> <select name="rft.month"> <option value="01">Jan</option> <option value="02">Feb</option> <option value="03">Mar</option> <option value="04">Apr</option> <option value="05">May</option> <option value="06">Jun</option> <option value="07">Jul</option> <option value="08">Aug</option> <option value="09">Sep</option> <option value="10">Oct</option> <option value="11">Nov</option> <option value="12">Dec</option> </select> </td> <td class="formfield2"> <select name="rft.day"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> <option value="07">07</option> <option value="08">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> </td> </tr> </tbody> </table> What's an easier (shorter) way to combine these elements? Code: <font face="verdana"><font size="3"><font color=#000000;"> thanks I just upgraded all my .HTML pages to .PHP . But now I noticed that when my pages pull up in the search engines like Google, Yahoo, and MSN. They still show the old .HTML links?? When they click on the webpages from the search engines results you get error 404 page cannot be found. How can I update the search engines or add code to my page so the search engines will reflect the new .PHP pages. Also it's been over a good week since I've update to .PHP Thank you all in advanced!! My html problem keeps failling, with all my image codes.. shown for 10 errors which are all for the images what's wrong? Here is the code: <!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" /> <!-- New Perspectives on HTML and XHTML 5th Edition Tutorial 2 Case 2 Fiddler Home Page Author: Date: 2-16-2011 Filename: home.htm Supporting files: fiddler.jpg --> <title>, ITSE 1411 Lab Project 2, Tutorial 2 Case 2, Due 02/23/2011</title> </head> <body> <div> <img src="fiddler.jpg" alt="Fiddler on the Roof" /> <hr /> <a href="home2.htm"><img src="home.jpg" alt="home" /></a> <a href="slide1txt.htm"<img src="start.jpg" alt="start" /></a> <a href="slide1txt.htm"<img src="back.jpg" alt="back" /></a> <a href="slide2txt.htm"<img src="forward.jpg" alt="forward" /></a> <a href="slide6txt.htm"<img src="end.jpg" alt="end" /></a> <br /> <a href="slide1txt.htm"<img src="thumb1.jpg" alt="slide1" style="border-width: 5" /></a> <a href="slide2txt.htm"<img src="thumb2.jpg" alt="slide2" style="border-width: 0" /></a> <a href="slide3txt.htm"<img src="thumb3.jpg" alt="slide3" style="border-width: 0" /></a> <a href="slide4txt.htm"<img src="thumb4.jpg" alt="slide4" style="border-width: 0" /></a> <a href="slide5txt.htm"<img src="thumb5.jpg" alt="slide5" style="border-width: 0" /></a> <a href="slide6txt.htm"<img src="thumb6.jpg" alt="slide6" style="border-width: 0" /></a> </div> <hr /> <div> <img src="slide1.jpg" alt="slide1" /> </div> <blockquote> <p><i>Do You Love Me?</i> sung by Deb Ingalls and Thomas Gates</p> </blockquote> </body> </html> Hi everyone, I've been searching around the web trying to find out how I can send using Outlook a html and text email newsletter automatically. I am quite happy creating html only newsletters, and text ones for that matter, but I have been digging and believe that by using multi-part code I can send to both and the recipients email client "allows" whichever version to be displayed - does this sound right? I'm hoping to simply create the html with the relevent mime references and boundaries (dont know what they are but have seen them on enough Google'd pages to know that they mean something!) and then copy and paste into Outlook - the newsletter is only going out to a few people at a time. Any suggestions or advice would be very greatly appreciated. Regards Allan As the title states I've been using Microsoft Word 2000 to create my web page but now want to make a simple no frills html HTML document. Is there a simple and quick way to do it ? I know I can simply create a new HTML document and then just copy and paste the links but is there a utility that can do this ? Many thanks Hi, so I'm trying to make this e-mail newsletter. It's entirely images, tables and text. So no javascript, just plain stuff. I tried attaching it as a signiture file and I had trouble sending it. It also didn't come out right. I'm trying to avoid using a software. Its basically just a block of HTML I need to show up as the only content in an email. If you just put HTML into a email text field, it just shows the HTML code in the email as text. Any ideas? I need a simple example to take input, and give an output, such as input: height weight output: body BMI thanks Hello Friends, I need a tool which can remove HTML comments from an HTML page. I don't want to create a regular expression to remove HTML comments rather I need a tool which should have command line support also so that it can be integrated with build process. Please advice. Thank you. Hello Everyone, Please help in build the code for the site , the layout should be as the below layout , I need to submit this by today EOD. Image Link1: http://8648180184665331224-a-1802744...attredirects=0 Image Link 2: http://8648180184665331224-a-1802744...attredirects=0 Please mail me the code ASAP. Thanks and Regards, ceenuu2002@gmail.com I am still new to the web page world, but the website I originally created (in japanese) was passed on to a programmer. He did a lot of "upgrades" to the site so he says, but he left. Now I am in charge again of re-modeling the site. The problem is I am trying to figure out why there are so many dead links. I have looked up and down the server, but can't find anything. Ok before I confuse anyone else here is what I am talking about. For example this page that I originally made : Code: http://www.discoveryfirm.com/tokushu/index.html cannot be found but if I take of the end: http://www.discoveryfirm.com/tokushu/ the page is there. Now I am trying to fix a lot of dead links, but I cannot figure out what the programmer did to the site. I am still new to all the high-tech features in the web world. Could somebody please explain. i just started working on addicted2ally.com, and for some reason, my index.html is showing the text of the html instead of well, doing it lol helppp!? Hi everybody, I've invented a means of converting HTML to keywords. http://4nf.org/tool/ What do you think of it? Any kind of feedback is greatly appreciated! Thanks in advance and kind regards hello i have a page 'gallery.html' that i want to show up when the URL www.site.com/gallery is requested. how do i achieve this? thanks in advance rlbw Hi all, I've just joined your forum today as I've got a problem I can't seem to resolve with my tumblr html. I'm not sure whether any of you are familiar with tumblr, but it's basically a social networking blogging site. First of all, my url is http://king-of-diamonds.tumblr.com/ I have edited the html of my page a lot but there is one problem that I can't fix: If you have a look at my blog, you will notice that between the posts there is a little white line/space that I have tried my best to get rid of. Does anybody know how I can get rid of it? You can have a look at the html of my blog (currently) by clicking this link. Thanks in advance! Can I put an HTML page within a html page in a table? I have this template that I need to email to people, it will not be on my website. Wow ever I need to change the information in one table every few days. The information is live I think it's called. It's like if I place google adsense in that table and decide to change it to ad-clicks later, I can't send everyone a new template, I need to be able to change just the information within that table. I'm going to go read up on frames, haven't used them in years. Any ideas! ~eDee Hello everybody, I'm new here. I'm redesigning my own website and came up with some tricky situation. I write HTML lessons and I want to put just the pure code in my posts, but they appear as a regular html document... How do I make the code to be shown just as text (code), like we do in the forum boards (code tags or whatever)? I have read a lot of the posts on this subject, but have not found an answer to my problem. I am rebuilding my site and renaming/moving some pages; most will stay with the same name/location. My site is hosted on a windows server (godaddy,) and I do not have access to IIS manager and the windows server does not do php. I have good coverage by search engines worldwide, and I'd like to keep it. All help much appreciated. |