Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Problem z formularzem
#15
Że namieszałem to wiem ale nie wiem czy ma wpływ na to.

strona.php:
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">

a{  text-decoration: none;  color: #000000; }

a:hover { text-decoration: underline; color: #0066FF; }

p { font-family: arial; font-size: small }
</style>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
// <![CDATA[
function pokaz_ukryj(pokaz, ukryj) {
    document.getElementById(pokaz).style.display = "block";
    document.getElementById(ukryj).style.display = "none";
}
//]]
</script>
<title>strona</title>
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
// -->
</script>
</head>

<body background="..">


<center>
<div align="center">
<center>


<div style="padding:0px;font-size:9px;font-family:Verdana;text-align:center;"><center>





<?php require (''); ?>



    <table class="tabelka" border="0" cellspacing="0" width="924" height="10" background="..">
    <tbody>
    <tr align="center">
      <td align="center" valign="top" width="922" height="10">

</td>
    </tr>
</tbody></table>

    <table class="tabelka" border="0" cellspacing="0" width="924" height="595" background="..">
    <tbody>
    <tr align="center">
      <td align="center" valign="top" width="320" height="595">




<?php require (''); ?>



<td align="center" valign="top" width="601" height="595">

    <table class="tabelka" border="0" cellspacing="0" width="576" height="593">
    <tbody>
    <td align="center" valign="top" width="574" height="593">
<p align="left"><b><font face="Verdana" size="3">Kartkówki</font></b></p>
<p align="left">&nbsp;</p>
<p align="left"><h1 align="left">Komentarz klienta</h1>

<p align="left">Proszę przekazać nam swoje komentarze.<p align="left">

<form action="31.php" method="post">
<p align="left">Nazwisko:<br />
<input type="text" name="nazwa" size="40" /></p>

<p align="left">Adres poczty elektronicznej:<br />
<input type="text" name="email" size="40" /></p>

<p align="left">Lala:<br />
<input type="text" name="lala" size="40" /></p>

<p align="left">

<input type="submit" value="Wyślij komentarz" />

</p>

</form></p>
    </tbody></table>

        </tr>
</tbody></table>




<?php require (''); ?>






<center>
<div align="center">

  <center>

&nbsp;</center></div>
</center></div></div>




</center></div>





</body>

</html>

przetworz.php:
Kod:
<?php
  // utworzenie krótkich nazw zmiennych
  $nazwa = $_POST['nazwa'];
  $email = $_POST['email'];
  $lala = $_POST['lala'];

  // zdefiniowanie danych statycznych
  $adresdo = "[email protected]";

  $temat = "Komentarz ze strony WWW";

  $zawartosc = "Nazwa klienta: ".$nazwa."\n"
               ."Adres pocztowy: ".$email."\n"
               ."lala: ".$lala."\n";

  $adresod = "[email protected]";

  // wywołanie funkcji mail() wysyłającej wiadomość pocztową
  mail($adresdo, $temat, $zawartosc, $adresod);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">

a{  text-decoration: none;  color: #000000; }

a:hover { text-decoration: underline; color: #0066FF; }

p { font-family: arial; font-size: small }
</style>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
// <![CDATA[
function pokaz_ukryj(pokaz, ukryj) {
    document.getElementById(pokaz).style.display = "block";
    document.getElementById(ukryj).style.display = "none";
}
//]]
</script>
<title>przetworz</title>
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
// -->
</script>
</head>

<body background="..">


<center>
<div align="center">
<center>



<div style="padding:0px;font-size:9px;font-family:Verdana;text-align:center;"><center>

<?php require (''); ?>

    <table class="tabelka" border="0" cellspacing="0" width="924" height="10" background="..">
    <tbody>
    <tr align="center">
      <td align="center" valign="top" width="922" height="10">

</td>
    </tr>
</tbody></table>

    <table class="tabelka" border="0" cellspacing="0" width="924" height="595" background="..">
    <tbody>
    <tr align="center">
      <td align="center" valign="top" width="320" height="595">
      
      <?php require (''); ?>
<td align="center" valign="top" width="601" height="595">

    <table class="tabelka" border="0" cellspacing="0" width="576" height="593">
    <tbody>
    <td align="center" valign="top" width="574" height="593">
<p align="left"><b><font face="Verdana" size="3">cos tam</font></b></p>
<p align="left">&nbsp;</p>
<p align="left"> <?php    
if (!eregi('^[a-zA-z0-9_\-\.]+@[a-zA-z0-9\-]+\.[a-zA-z0-9\-\.]+$', $mail)) {
echo "<p>Nie poprwany adres e-mail.</p>";
exit;
} else {
echo "<p>Dane zostały zaaktualizowane i niebawem pojawią się na stronie.</p>";
}

?></p>
    </tbody></table>

        </tr>
</tbody></table>


<?php require (''); ?>

<center>
<div align="center">

  <center>

&nbsp;</center></div>
</center></div></div>




</center></div>





</body>

</html>
Odpowiedz


Wiadomości w tym wątku
Problem z formularzem - przez messi19125 - 30-05-2011, 14:06
RE: Problem z formularzem - przez hieroshima - 30-05-2011, 15:02
RE: Problem z formularzem - przez messi19125 - 30-05-2011, 15:58
RE: Problem z formularzem - przez hieroshima - 30-05-2011, 16:03
RE: Problem z formularzem - przez messi19125 - 30-05-2011, 17:13
RE: Problem z formularzem - przez Pedro84 - 30-05-2011, 17:24
RE: Problem z formularzem - przez hieroshima - 30-05-2011, 18:33
RE: Problem z formularzem - przez messi19125 - 30-05-2011, 19:38
RE: Problem z formularzem - przez hieroshima - 30-05-2011, 20:09
RE: Problem z formularzem - przez messi19125 - 30-05-2011, 22:25
RE: Problem z formularzem - przez hieroshima - 30-05-2011, 23:35
RE: Problem z formularzem - przez messi19125 - 31-05-2011, 02:13
RE: Problem z formularzem - przez messi19125 - 31-05-2011, 14:11
RE: Problem z formularzem - przez Pedro84 - 31-05-2011, 14:14
RE: Problem z formularzem - przez messi19125 - 31-05-2011, 15:05
RE: Problem z formularzem - przez Pedro84 - 31-05-2011, 15:34
RE: Problem z formularzem - przez messi19125 - 31-05-2011, 18:45
RE: Problem z formularzem - przez Pedro84 - 31-05-2011, 20:04
RE: Problem z formularzem - przez messi19125 - 31-05-2011, 21:52
RE: Problem z formularzem - przez hieroshima - 31-05-2011, 22:36
RE: Problem z formularzem - przez Pedro84 - 31-05-2011, 22:51
RE: Problem z formularzem - przez messi19125 - 01-06-2011, 00:11
RE: Problem z formularzem - przez Pedro84 - 01-06-2011, 00:14
RE: Problem z formularzem - przez hieroshima - 01-06-2011, 00:26
RE: Problem z formularzem - przez messi19125 - 01-06-2011, 14:59
RE: Problem z formularzem - przez Pedro84 - 01-06-2011, 15:07
RE: Problem z formularzem - przez hieroshima - 01-06-2011, 20:06
RE: Problem z formularzem - przez Pedro84 - 01-06-2011, 20:10
RE: Problem z formularzem - przez messi19125 - 02-06-2011, 22:26

Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Banalny problem z formularzem R_Rafalsky 10 5,644 12-07-2012, 18:20
Ostatni post: Pedro84
  problem z formularzem tenorek 8 4,613 09-02-2012, 18:46
Ostatni post: kornell
  Problem z linkami stron w XML oraz formularzem kontaktowym mihau87 0 1,765 31-01-2012, 00:49
Ostatni post: mihau87
  Jak dodac kod php z formularzem newsów neneth 7 6,243 04-05-2011, 22:43
Ostatni post: geforce
  Wyswietlanie elementu pod formularzem jingels 3 3,249 22-03-2011, 21:46
Ostatni post: jingels

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl