-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkontakt.php
150 lines (111 loc) · 5.96 KB
/
kontakt.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!--==============================content================================-->
<section id="content">
<div class="container_12">
<article class="grid_6">
<div class="inner-block">
<h2 class="aqua">Dane kontaktowe</h2>
<h3></h3><div class="przerwa"></div>
<div class="adress">
<h2 class="blue"> Akademia Pływania Malucha</h2>
<h3 style="font-weight: normal; color: #000066;">Karolina Maciałek</h3>
<p>
Telefon: <span style="color:purple; font-weight: bold">+48 518 508 843</span></br></br>
E-mail: <span style="color:purple; font-weight: bold"><a href="mailto:[email protected]">[email protected]</a></span></br></br>
Nr konta: <span style="color:purple; font-weight: bold">23 1090 1896 0000 0001 2344 2034</span></br>
</p>
<!-- <dt>Akademia Pływania Malucha</dt>
<dt>Karolina Maciałek</dt>
<dd><span>Telefon:</span>+48 518 508 843</dd>
<dd>E-mail: <a href="mailto:[email protected]">[email protected]</a></dd>
<dt>Nr konta: 23 1090 1896 0000 0001 2344 2034</dt>-->
</div>
</div>
</article>
<article class="grid_6">
<div class="inner-block">
<h2 class="aqua">Formularz Kontaktowy</h2>
<h3></h3>
<p><font color="black"><strong>
<?php
$imie=$_POST['imie'];
$email=$_POST['email'];
$potw_email=$_POST['potw_email'];
$tel=$_POST['tel'];
$tresc=$_POST['tresc'];
$m2=$_POST['m2'];
if($m2 == 5)
{
if ($email == $potw_email and $email !='')
{
$message = "Imię: $imie\nE-mail: $email\nTel.: $tel\nTreść wiadomości:\n\n$tresc";
$header = "From: $imie <$email>";
@mail("[email protected]","Kontakt z AKADEMIA PŁYWANIA MALUCHA!","$message","$header")
or die();
echo '<div class="success"><div class="success_txt">Wiadomość została wysłana poprawnie!<br /><strong> Wkrótce otrzymasz odpowiedź.</strong></div></div>';
$message2 = "Prśba wysłania e-maila ze strony CARNAJM.pl\nzakończyła się powodzeniem.\nWkrótce otrzymasz od nas odpowiedź.\n\nUWAGA\nZ przyczyn niezależnych od AKADEMII PŁYWANIA MALUCHA, sporadycznie\nwiadomości wysyłane przez formularz\nnie docierają do adresata. Jeśeli w ciągu 48 godzin\nnie uzyskasz odpowiedzi, oznacza to,\nże najprawdopodobniej nie otrzymaliśmy\nTwojego zapytania.\n\nW takiej sytuacji wyślij zapytanie ponownie.\n\nŻyczymy miłego dnia\nAKADEMIA PŁYWANIA MALUCHA";
$header2 = "From: CARNAJM <[email protected]>";
@mail("$email","Wysłano zapytanie mailowe przez AKADEMIA PŁYWANIA MALUCHA!","$message2","$header2")
or die();
$czy_ok=1;
}
else
{
echo '<div class="success"><div class="success_txt">Nie wysłano wiadomości. Błędny adres e-mail!<br /></div></div>';
}
}
if($czy_ok!=1)
{
echo ' <form method="post" action="index2.php" id="contact-form">
<fieldset>
<label class="name">
<input type="text" name="imie" value="Imię'.$imie.'" class="c" />
</label>
<label class="email">
<input type="text" name="email" value="E-mail'.$email.'" class="c" />
</label>
<label class="email">
<input type="text" name="potw_email" value="Potwierdź e-mail'.$potw_email.'" class="c" />
</label>
<label class="phone">
<input type="text" name="tel" value="Telefon'.$tel.'" class="c" />
</label>
<label class="message">
<textarea name="tresc" value="Treść">'.$tresc.'</textarea>
</label>
';
}
if($czy_ok==1)
{
echo ' <form method="post" action="index2.php" id="contact-form">
<fieldset>
<label class="name">
<input type="text" name="imie" value="" class="c" />
</label>
<label class="email">
<input type="text" name="email" value="" class="c" />
</label>
<label class="email">
<input type="text" name="potw_email" value="" class="c" />
</label>
<label class="phone">
<input type="text" name="tel" value="" class="c" />
</label>
<label class="message">
<textarea name="tresc" value=""></textarea>
</label>
';
}
?>
<input type="hidden" name="m2" value="5" />
<div class="buttons2">
<input type="submit" value="Wyślij" class="button1 aqua_but" />
</div>
</fieldset>
</form>
</strong></font></p>
</div>
</article>
<div class="clear"></div>
</div>
</section>
</div>