realfun Posted August 27, 2010 Report Share Posted August 27, 2010 esmu sastadijis kontakt formas skriptu vis itka normali be problema tada ka vins nenosuta uz epastu! Pirmais kods kforma.html <html> <head> <title>PM</title> <head> <body> <form action="kphp.php" method="post"> Vārds:<br /> <input type="text" name="vards" /> <br /> E-pasts:<br /> <input type="text" name="epasts" /> <br /> Vestule:<br /> <textarea row="10" cols="20" name="vestule"></textarea> <br /> <input type="submit" value="Sutit" /> </form> </body> Otrais kods kphp.php <?php $name = $_POST['vards']; $email = $_POST['epasts']; $text = $_POST['vestule']; // Kam,Iemesls,Vestule,Galva mail('tavsniks@epasts.com', 'Problemas', $text, 'From: ' . $name . ' <' . $email . '>'); header('Location: knosutits.html'); ?> kads nevar ludzu pastities kas par vainu! Quote Link to comment Share on other sites More sharing options...
realfun Posted August 27, 2010 Author Report Share Posted August 27, 2010 Problema atrisinata vaina bija serverim nevis kodam! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.