Form Fancybox Click.Funktion -> .php -
this question has answer here:
this original html 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" /> <meta http-equiv="content-script-type" content="text/javascript" /> <meta http-equiv="imagetoolbar" content="false" /> <link href='css/style.css' rel='stylesheet' type='text/css' /> <link href='http://fonts.googleapis.com/css?family=open+sans' rel='stylesheet' type='text/css'> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="js/jquery-1.10.1.min.js"></script> <script type="text/javascript" src="js/jquery.mousewheel-3.0.6.pack.js"></script> <script type="text/javascript" src="js/jquery.fancybox.js?v=2.1.5"></script> <link rel="stylesheet" type="text/css" href="css/jquery.fancybox.css?v=2.1.5" media="screen" /> <script type="text/javascript"> $(document).ready(function() { $("#fancybox-mail").click(function() { $.fancybox.open({ href : 'kontakt.php', type : 'iframe', padding : 5 }); }); }); </script> <style type="text/css"> .fancybox-custom .fancybox-skin { box-shadow: 0 0 50px #222; } </style> </head> <body> <form class="pure-form" name="fancy" action="kontakt.php" method="post"> <p>name: <input name="name" placeholder="name" size="25"> e-mail: <input name="email" placeholder="beispiel@beispiel.de" size="25"><br /></p> <textarea style="resize:none" name="comments" cols="65" rows="15"></textarea><br /> <input type="button" value="submit" id="fancybox-mail"<br /> </form> </body> </html>
i want send data form kontakt.php, doesn't work. want frame box result kontact.php.
only fancybox works post don't send kontakt.php... (without fancybox works).
i try result here, doesn't me.
have idea?
thanks,
replace last line of form with
<input type="submit" value="submit" id="fancybox-mail"/><br />
type must submit instead button
Comments
Post a Comment