Snadderman Skrevet 17. mars 2016 Del Skrevet 17. mars 2016 Jeg prøver å lage en nettside ved hjelp av Aptana Studio og en gratis template (http://www.zerotheme.com/1656/zbabycare-free-responsive-html5-template.html) men mistenker at noe er feil... Det aller meste fungerer men jeg får ikke kontaktskjemaet til å virke, når jeg tester med å sende inn ett skjema, så kommer bare hele php teksten frem i nettleseren.Er det noen her som kan hjelpe meg? Min contact.php fil ser slik ut (se vedlegg: contact.php), epost adressen den skal sende til er: [email protected] og er ikke satt inn i dette vedlegget, da vedlegget er den orginale filen. Mitt skjema ser slik ut (se vedlegg: contact.html) Av en eller annen grunn for jeg dem ikke til å fungere sammen.... ....setter pris på ALL hjelp!! :-) Mvh. contact.php contact.html Lenke til kommentar
forvirretoggal Skrevet 17. mars 2016 Del Skrevet 17. mars 2016 Siden du la ved filene her, antar jeg at du koder og tester på din lokale maskin? Har du i såfall installert WAMP/LAMP (eller støtter serveren du tester dette på php?)? Lenke til kommentar
Snadderman Skrevet 19. mars 2016 Forfatter Del Skrevet 19. mars 2016 (endret) Siden du la ved filene her, antar jeg at du koder og tester på din lokale maskin? Har du i såfall installert WAMP/LAMP (eller støtter serveren du tester dette på php?)? Jeg tester i Aptana Studio 3 og i Firefox, det ble litt bedre nå da jeg installerte xBug og prøvde å følge denne: http://devcircle.blogspot.no/2013/02/enable-xdebug-in-aptana-studio-3x.html Men jeg har som sagt litt lite peiling og fant ingen ini. fil.... Det er fortsatt endel skrift/koder på toppen av siden :-( Endret 19. mars 2016 av Snadderman Lenke til kommentar
forvirretoggal Skrevet 20. mars 2016 Del Skrevet 20. mars 2016 Siden du la ved filene her, antar jeg at du koder og tester på din lokale maskin? Har du i såfall installert WAMP/LAMP (eller støtter serveren du tester dette på php?)? Jeg tester i Aptana Studio 3 og i Firefox, det ble litt bedre nå da jeg installerte xBug og prøvde å følge denne: http://devcircle.blogspot.no/2013/02/enable-xdebug-in-aptana-studio-3x.html Men jeg har som sagt litt lite peiling og fant ingen ini. fil.... Det er fortsatt endel skrift/koder på toppen av siden :-( Kan du ta et skjermbilde av hva outputen blir (alt. bruke utklippverktøyet/snipping tool som er inkludert fra og med Win 7) og legge opp her? Lenke til kommentar
Snadderman Skrevet 23. mars 2016 Forfatter Del Skrevet 23. mars 2016 Siden du la ved filene her, antar jeg at du koder og tester på din lokale maskin? Har du i såfall installert WAMP/LAMP (eller støtter serveren du tester dette på php?)? Jeg tester i Aptana Studio 3 og i Firefox, det ble litt bedre nå da jeg installerte xBug og prøvde å følge denne: http://devcircle.blogspot.no/2013/02/enable-xdebug-in-aptana-studio-3x.html Men jeg har som sagt litt lite peiling og fant ingen ini. fil.... Det er fortsatt endel skrift/koder på toppen av siden :-( Kan du ta et skjermbilde av hva outputen blir (alt. bruke utklippverktøyet/snipping tool som er inkludert fra og med Win 7) og legge opp her? ja, det ser slik ut når jeg tester og har trykt sendt: Lenke til kommentar
sindredl Skrevet 23. mars 2016 Del Skrevet 23. mars 2016 (endret) Ser du har all HTML-en som er i HTML fila også i PHP fila. Ser ut som du echoer var $text før du har posta i formen. Kan det være noe her? Kan være jeg er helt på jordet her nå men. <div class="contact"> <h3 class="color-green" style="margin: 20px 0 20px 30px">Contact Form</h3> <!--Warning--> <center><?php echo $text;?></center> <!----> <div id="contact_form"> Her er forøvrig de to filene hvis noen andre ikke vil laste de ned: contact.php: <?php // Free html5 templates : www.zerotheme.com $text = "<span style='color:red; font-size: 35px; line-height: 40px; magin: 10px;'>Error! Please try again.</span>"; if(isset($_POST['name'])) { $name=$_POST['name']; $email=$_POST['email']; $message=$_POST['message']; $to = "[email protected]"; $subject = "Zerotheme - Testing Contact Form"; $message = " Name: " . $name ."\r\n Email: " . $email . "\r\n Message:\r\n" . $message; $from = "Zerotheme"; $headers = "From:" . $from . "\r\n"; $headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n"; if(@mail($to,$subject,$message,$headers)) { $text = "<span style='color:blue; font-size: 35px; line-height: 40px; margin: 10px;'>Your Message was sent successfully !</span>"; } } ?> <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>zBabyCare</title> <meta name="description" content="Free Responsive Html5 Css3 Templates | zerotheme.com"> <meta name="author" content="www.zerotheme.com"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="css/zerogrid.css"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/lightbox.css"> <!-- Custom Fonts --> <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="css/menu.css"> <script src="js/jquery1111.min.js" type="text/javascript"></script> <script src="js/script.js"></script> <!--[if lt IE 8]> <div style=' clear: both; text-align:center; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/Items/ie/home?ocid=ie6_countdown_bannercode"> <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /> </a> </div> <![endif]--> <!--[if lt IE 9]> <script src="js/html5.js"></script> <script src="js/css3-mediaqueries.js"></script> <![endif]--> </head> <body> <div class="wrap-body"> <div class="header"> <div id='cssmenu' > <ul> <li><a href='index.html'><span>zBabyCare</span></a></li> <li class=' has-sub'><a href='#'><span>Category</span></a> <ul> <li class='has-sub'><a href='#'><span>Item 1</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> <li class='has-sub'><a href='#'><span>Item 2</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> </ul> </li> <li><a href='gallery.html'><span>Gallery</span></a></li> <li><a href='single.html'><span>About</span></a></li> <li class='last active'><a href='contact.html'><span>Contact</span></a></li> </ul> </div> </div> <!--////////////////////////////////////Container--> <section id="container"> <div class="wrap-container"> <div class="zerogrid"> <div class="row"> <h1 class="color-red" style="margin: 20px 0">Contact</h1> <div class="col-full"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3164.289259162295!2d-120.7989351!3d37.5246781!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8091042b3386acd7%3A0x3b4a4cedc60363dd!2sMain+St%2C+Denair%2C+CA+95316%2C+Hoa+K%E1%BB%B3!5e0!3m2!1svi!2s!4v1434016649434" width="100%" height="450" frameborder="0" style="border:0"></iframe> </div> <div class="col-1-3"> <div class="wrap-col"> <h3 class="color-blue" style="margin: 20px 0">Contact Info</h3> <span>SED UT PERSPICIATIS UNDE OMNIS ISTE NATUS ERROR SIT VOLUPTATEM ACCUSANTIUM DOLOREMQUE LAUDANTIUM, TOTAM REM APERIAM.</span> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque la udantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia.</p> <p>JL.Kemacetan timur no.23. block.Q3<br> Jakarta-Indonesia</p> <p>+6221 888 888 90 <br> +6221 888 88891</p> <p>[email protected]</p> </div> </div> <div class="col-2-3"> <div class="wrap-col"> <div class="contact"> <h3 class="color-green" style="margin: 20px 0 20px 30px">Contact Form</h3> <!--Warning--> <center><?php echo $text;?></center> <!----> <div id="contact_form"> <form name="form1" id="ff" method="post" action="contact.php"> <label class="row"> <div class="col-1-2"> <div class="wrap-col"> <input type="text" name="name" id="name" placeholder="Enter name" required="required" /> </div> </div> <div class="col-1-2"> <div class="wrap-col"> <input type="email" name="email" id="email" placeholder="Enter email" required="required" /> </div> </div> </label> <label class="row"> <div class="col-2-4"> <div class="wrap-col"> <input type="text" name="subject" id="subject" placeholder="Subject" required="required" /> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="date" name="date" id="date" placeholder="Date"/> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="time" name="time" id="time" placeholder="Time"/> </div> </div> </label> <label class="row"> <div class="wrap-col"> <textarea name="message" id="message" class="form-control" rows="4" cols="25" required="required" placeholder="Message"></textarea> </div> </label> <center><input class="sendButton" type="submit" name="Submit" value="Submit"></center> </form> </div> </div> </div> </div> </div> </div> </div> </section> <hr class="line"> <!--////////////////////////////////////Footer--> <footer> <div class="wrap-footer"> <div class="zerogrid"> <div class="row"> <div class="col-1-3"> <div class="wrap-col"> <p>Copyright - <a href="http://www.zerotheme.com" target="_blank" rel="nofollow">Free Html5 Templates</a> designed by ZEROTHEME</p> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="social-buttons"> <li><a href="#"><i class="fa fa-twitter"></i></a> </li> <li><a href="#"><i class="fa fa-facebook"></i></a> </li> <li><a href="#"><i class="fa fa-linkedin"></i></a> </li> </ul> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="quick-link"> <li><a href="#">Privacy Policy</a></li> <li><a href="#">Terms of Use</a></li> </ul> </div> </div> </div> </div> </div> </footer> </div> </body> </html> contact.html: <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>zBabyCare</title> <meta name="description" content="Free Responsive Html5 Css3 Templates | zerotheme.com"> <meta name="author" content="www.zerotheme.com"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="css/zerogrid.css"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/lightbox.css"> <!-- Custom Fonts --> <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="css/menu.css"> <script src="js/jquery1111.min.js" type="text/javascript"></script> <script src="js/script.js"></script> <!--[if lt IE 8]> <div style=' clear: both; text-align:center; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/Items/ie/home?ocid=ie6_countdown_bannercode"> <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /> </a> </div> <![endif]--> <!--[if lt IE 9]> <script src="js/html5.js"></script> <script src="js/css3-mediaqueries.js"></script> <![endif]--> </head> <body> <div class="wrap-body"> <div class="header"> <div id='cssmenu' > <ul> <li><a href='index.html'><span>zBabyCare</span></a></li> <li class=' has-sub'><a href='#'><span>Category</span></a> <ul> <li class='has-sub'><a href='#'><span>Item 1</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> <li class='has-sub'><a href='#'><span>Item 2</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> </ul> </li> <li><a href='gallery.html'><span>Gallery</span></a></li> <li><a href='single.html'><span>About</span></a></li> <li class='last active'><a href='contact.html'><span>Contact</span></a></li> </ul> </div> </div> <!--////////////////////////////////////Container--> <section id="container"> <div class="wrap-container"> <div class="zerogrid"> <div class="row"> <h1 class="color-red" style="margin: 20px 0">Contact</h1> <div class="col-full"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3164.289259162295!2d-120.7989351!3d37.5246781!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8091042b3386acd7%3A0x3b4a4cedc60363dd!2sMain+St%2C+Denair%2C+CA+95316%2C+Hoa+K%E1%BB%B3!5e0!3m2!1svi!2s!4v1434016649434" width="100%" height="450" frameborder="0" style="border:0"></iframe> </div> <div class="col-1-3"> <div class="wrap-col"> <h3 class="color-blue" style="margin: 20px 0">Contact Info</h3> <span>SED UT PERSPICIATIS UNDE OMNIS ISTE NATUS ERROR SIT VOLUPTATEM ACCUSANTIUM DOLOREMQUE LAUDANTIUM, TOTAM REM APERIAM.</span> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque la udantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia.</p> <p>JL.Kemacetan timur no.23. block.Q3<br> Jakarta-Indonesia</p> <p>+6221 888 888 90 <br> +6221 888 88891</p> <p>[email protected]</p> </div> </div> <div class="col-2-3"> <div class="wrap-col"> <div class="contact"> <h3 class="color-green" style="margin: 20px 0 20px 30px">Contact Form</h3> <div id="contact_form"> <form name="form1" id="ff" method="post" action="contact.php"> <label class="row"> <div class="col-1-2"> <div class="wrap-col"> <input type="text" name="name" id="name" placeholder="Enter name" required="required" /> </div> </div> <div class="col-1-2"> <div class="wrap-col"> <input type="email" name="email" id="email" placeholder="Enter email" required="required" /> </div> </div> </label> <label class="row"> <div class="col-2-4"> <div class="wrap-col"> <input type="text" name="subject" id="subject" placeholder="Subject" required="required" /> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="date" name="date" id="date" placeholder="Date"/> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="time" name="time" id="time" placeholder="Time"/> </div> </div> </label> <label class="row"> <div class="wrap-col"> <textarea name="message" id="message" class="form-control" rows="4" cols="25" required="required" placeholder="Message"></textarea> </div> </label> <center><input class="sendButton" type="submit" name="Submit" value="Submit"></center> </form> </div> </div> </div> </div> </div> </div> </div> </section> <hr class="line"> <!--////////////////////////////////////Footer--> <footer> <div class="wrap-footer"> <div class="zerogrid"> <div class="row"> <div class="col-1-3"> <div class="wrap-col"> <p>Copyright - <a href="http://www.zerotheme.com" target="_blank" rel="nofollow">Free Html5 Templates</a> designed by ZEROTHEME</p> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="social-buttons"> <li><a href="#"><i class="fa fa-twitter"></i></a> </li> <li><a href="#"><i class="fa fa-facebook"></i></a> </li> <li><a href="#"><i class="fa fa-linkedin"></i></a> </li> </ul> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="quick-link"> <li><a href="#">Privacy Policy</a></li> <li><a href="#">Terms of Use</a></li> </ul> </div> </div> </div> </div> </div> </footer> </div> </body> </html> Endret 23. mars 2016 av sindredl Lenke til kommentar
mobile999 Skrevet 24. mars 2016 Del Skrevet 24. mars 2016 Serveren på 127.0.0.1:8020 takler ikke php. Lenke til kommentar
Snadderman Skrevet 24. mars 2016 Forfatter Del Skrevet 24. mars 2016 Ser du har all HTML-en som er i HTML fila også i PHP fila. Ser ut som du echoer var $text før du har posta i formen. Kan det være noe her? Kan være jeg er helt på jordet her nå men. <div class="contact"> <h3 class="color-green" style="margin: 20px 0 20px 30px">Contact Form</h3> <!--Warning--> <center><?php echo $text;?></center> <!----> <div id="contact_form"> Her er forøvrig de to filene hvis noen andre ikke vil laste de ned: contact.php: <?php // Free html5 templates : www.zerotheme.com $text = "<span style='color:red; font-size: 35px; line-height: 40px; magin: 10px;'>Error! Please try again.</span>"; if(isset($_POST['name'])) { $name=$_POST['name']; $email=$_POST['email']; $message=$_POST['message']; $to = "[email protected]"; $subject = "Zerotheme - Testing Contact Form"; $message = " Name: " . $name ."\r\n Email: " . $email . "\r\n Message:\r\n" . $message; $from = "Zerotheme"; $headers = "From:" . $from . "\r\n"; $headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n"; if(@mail($to,$subject,$message,$headers)) { $text = "<span style='color:blue; font-size: 35px; line-height: 40px; margin: 10px;'>Your Message was sent successfully !</span>"; } } ?> <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>zBabyCare</title> <meta name="description" content="Free Responsive Html5 Css3 Templates | zerotheme.com"> <meta name="author" content="www.zerotheme.com"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="css/zerogrid.css"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/lightbox.css"> <!-- Custom Fonts --> <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="css/menu.css"> <script src="js/jquery1111.min.js" type="text/javascript"></script> <script src="js/script.js"></script> <!--[if lt IE 8]> <div style=' clear: both; text-align:center; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/Items/ie/home?ocid=ie6_countdown_bannercode"> <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /> </a> </div> <![endif]--> <!--[if lt IE 9]> <script src="js/html5.js"></script> <script src="js/css3-mediaqueries.js"></script> <![endif]--> </head> <body> <div class="wrap-body"> <div class="header"> <div id='cssmenu' > <ul> <li><a href='index.html'><span>zBabyCare</span></a></li> <li class=' has-sub'><a href='#'><span>Category</span></a> <ul> <li class='has-sub'><a href='#'><span>Item 1</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> <li class='has-sub'><a href='#'><span>Item 2</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> </ul> </li> <li><a href='gallery.html'><span>Gallery</span></a></li> <li><a href='single.html'><span>About</span></a></li> <li class='last active'><a href='contact.html'><span>Contact</span></a></li> </ul> </div> </div> <!--////////////////////////////////////Container--> <section id="container"> <div class="wrap-container"> <div class="zerogrid"> <div class="row"> <h1 class="color-red" style="margin: 20px 0">Contact</h1> <div class="col-full"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3164.289259162295!2d-120.7989351!3d37.5246781!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8091042b3386acd7%3A0x3b4a4cedc60363dd!2sMain+St%2C+Denair%2C+CA+95316%2C+Hoa+K%E1%BB%B3!5e0!3m2!1svi!2s!4v1434016649434" width="100%" height="450" frameborder="0" style="border:0"></iframe> </div> <div class="col-1-3"> <div class="wrap-col"> <h3 class="color-blue" style="margin: 20px 0">Contact Info</h3> <span>SED UT PERSPICIATIS UNDE OMNIS ISTE NATUS ERROR SIT VOLUPTATEM ACCUSANTIUM DOLOREMQUE LAUDANTIUM, TOTAM REM APERIAM.</span> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque la udantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia.</p> <p>JL.Kemacetan timur no.23. block.Q3<br> Jakarta-Indonesia</p> <p>+6221 888 888 90 <br> +6221 888 88891</p> <p>[email protected]</p> </div> </div> <div class="col-2-3"> <div class="wrap-col"> <div class="contact"> <h3 class="color-green" style="margin: 20px 0 20px 30px">Contact Form</h3> <!--Warning--> <center><?php echo $text;?></center> <!----> <div id="contact_form"> <form name="form1" id="ff" method="post" action="contact.php"> <label class="row"> <div class="col-1-2"> <div class="wrap-col"> <input type="text" name="name" id="name" placeholder="Enter name" required="required" /> </div> </div> <div class="col-1-2"> <div class="wrap-col"> <input type="email" name="email" id="email" placeholder="Enter email" required="required" /> </div> </div> </label> <label class="row"> <div class="col-2-4"> <div class="wrap-col"> <input type="text" name="subject" id="subject" placeholder="Subject" required="required" /> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="date" name="date" id="date" placeholder="Date"/> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="time" name="time" id="time" placeholder="Time"/> </div> </div> </label> <label class="row"> <div class="wrap-col"> <textarea name="message" id="message" class="form-control" rows="4" cols="25" required="required" placeholder="Message"></textarea> </div> </label> <center><input class="sendButton" type="submit" name="Submit" value="Submit"></center> </form> </div> </div> </div> </div> </div> </div> </div> </section> <hr class="line"> <!--////////////////////////////////////Footer--> <footer> <div class="wrap-footer"> <div class="zerogrid"> <div class="row"> <div class="col-1-3"> <div class="wrap-col"> <p>Copyright - <a href="http://www.zerotheme.com" target="_blank" rel="nofollow">Free Html5 Templates</a> designed by ZEROTHEME</p> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="social-buttons"> <li><a href="#"><i class="fa fa-twitter"></i></a> </li> <li><a href="#"><i class="fa fa-facebook"></i></a> </li> <li><a href="#"><i class="fa fa-linkedin"></i></a> </li> </ul> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="quick-link"> <li><a href="#">Privacy Policy</a></li> <li><a href="#">Terms of Use</a></li> </ul> </div> </div> </div> </div> </div> </footer> </div> </body> </html> contact.html: <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>zBabyCare</title> <meta name="description" content="Free Responsive Html5 Css3 Templates | zerotheme.com"> <meta name="author" content="www.zerotheme.com"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="css/zerogrid.css"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/lightbox.css"> <!-- Custom Fonts --> <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="css/menu.css"> <script src="js/jquery1111.min.js" type="text/javascript"></script> <script src="js/script.js"></script> <!--[if lt IE 8]> <div style=' clear: both; text-align:center; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/Items/ie/home?ocid=ie6_countdown_bannercode"> <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /> </a> </div> <![endif]--> <!--[if lt IE 9]> <script src="js/html5.js"></script> <script src="js/css3-mediaqueries.js"></script> <![endif]--> </head> <body> <div class="wrap-body"> <div class="header"> <div id='cssmenu' > <ul> <li><a href='index.html'><span>zBabyCare</span></a></li> <li class=' has-sub'><a href='#'><span>Category</span></a> <ul> <li class='has-sub'><a href='#'><span>Item 1</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> <li class='has-sub'><a href='#'><span>Item 2</span></a> <ul> <li><a href='#'><span>Sub Item</span></a></li> <li class='last'><a href='#'><span>Sub Item</span></a></li> </ul> </li> </ul> </li> <li><a href='gallery.html'><span>Gallery</span></a></li> <li><a href='single.html'><span>About</span></a></li> <li class='last active'><a href='contact.html'><span>Contact</span></a></li> </ul> </div> </div> <!--////////////////////////////////////Container--> <section id="container"> <div class="wrap-container"> <div class="zerogrid"> <div class="row"> <h1 class="color-red" style="margin: 20px 0">Contact</h1> <div class="col-full"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3164.289259162295!2d-120.7989351!3d37.5246781!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8091042b3386acd7%3A0x3b4a4cedc60363dd!2sMain+St%2C+Denair%2C+CA+95316%2C+Hoa+K%E1%BB%B3!5e0!3m2!1svi!2s!4v1434016649434" width="100%" height="450" frameborder="0" style="border:0"></iframe> </div> <div class="col-1-3"> <div class="wrap-col"> <h3 class="color-blue" style="margin: 20px 0">Contact Info</h3> <span>SED UT PERSPICIATIS UNDE OMNIS ISTE NATUS ERROR SIT VOLUPTATEM ACCUSANTIUM DOLOREMQUE LAUDANTIUM, TOTAM REM APERIAM.</span> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque la udantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia.</p> <p>JL.Kemacetan timur no.23. block.Q3<br> Jakarta-Indonesia</p> <p>+6221 888 888 90 <br> +6221 888 88891</p> <p>[email protected]</p> </div> </div> <div class="col-2-3"> <div class="wrap-col"> <div class="contact"> <h3 class="color-green" style="margin: 20px 0 20px 30px">Contact Form</h3> <div id="contact_form"> <form name="form1" id="ff" method="post" action="contact.php"> <label class="row"> <div class="col-1-2"> <div class="wrap-col"> <input type="text" name="name" id="name" placeholder="Enter name" required="required" /> </div> </div> <div class="col-1-2"> <div class="wrap-col"> <input type="email" name="email" id="email" placeholder="Enter email" required="required" /> </div> </div> </label> <label class="row"> <div class="col-2-4"> <div class="wrap-col"> <input type="text" name="subject" id="subject" placeholder="Subject" required="required" /> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="date" name="date" id="date" placeholder="Date"/> </div> </div> <div class="col-1-4"> <div class="wrap-col"> <input type="time" name="time" id="time" placeholder="Time"/> </div> </div> </label> <label class="row"> <div class="wrap-col"> <textarea name="message" id="message" class="form-control" rows="4" cols="25" required="required" placeholder="Message"></textarea> </div> </label> <center><input class="sendButton" type="submit" name="Submit" value="Submit"></center> </form> </div> </div> </div> </div> </div> </div> </div> </section> <hr class="line"> <!--////////////////////////////////////Footer--> <footer> <div class="wrap-footer"> <div class="zerogrid"> <div class="row"> <div class="col-1-3"> <div class="wrap-col"> <p>Copyright - <a href="http://www.zerotheme.com" target="_blank" rel="nofollow">Free Html5 Templates</a> designed by ZEROTHEME</p> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="social-buttons"> <li><a href="#"><i class="fa fa-twitter"></i></a> </li> <li><a href="#"><i class="fa fa-facebook"></i></a> </li> <li><a href="#"><i class="fa fa-linkedin"></i></a> </li> </ul> </div> </div> <div class="col-1-3"> <div class="wrap-col"> <ul class="quick-link"> <li><a href="#">Privacy Policy</a></li> <li><a href="#">Terms of Use</a></li> </ul> </div> </div> </div> </div> </div> </footer> </div> </body> </html> Godt mulig du har rett ;-) Lenke til kommentar
Snadderman Skrevet 24. mars 2016 Forfatter Del Skrevet 24. mars 2016 Serveren på 127.0.0.1:8020 takler ikke php. Ja, det er jo mulig, kanskje jeg burde legge ut på webhotellet og teste fra der...? Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå