103 / 90 / 75
Регистрация: 04.11.2011
Сообщений: 1,820
|
|
|
|
Не открывается страница
23.02.2014, 00:51. Показов 1592. Ответов 3
Есть 2 файла index.html и index.php
| 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
| <?PHP
if (!empty($_POST['newuser'])){
$myemail = "anton_vr@mail.ru";
$email = $_POST['email'];
$name = $_POST['name'];
$phone = $_POST['phone'];
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
echo "E-mail (Mail) указан неверно, вводим правильно !";
exit();
}
$headers = "Content-Type: text/plain; charset=UTF-8\r\n";
$headers .= "From: ".$email."\r\n";
$mails = mail($myemail,"Заказной звонок", "Меня зовут -".$name." Позвоните на мой номер -".$phone , $headers );
if($mails){
echo "Ваша заявка принята! Пожалуйста перезагрузите страницу.";
}else{
echo "Не могу отправить, у меня проблемы, ERRORS !";
}
}else{
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Футбольная школа</title>
<link media="all" type="text/css" rel="stylesheet" href="all.css" />
<link media="all" rel="stylesheet" href="fancybox.css" />
<link rel="stylesheet" href="validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="jquery.validationEngine1.js" type="text/javascript"></script>
<script src="jquery.validationEngine-ru.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery.main.js"></script>
<script type="text/javascript">
$(function(){
$(".form-order,.call-form").validationEngine();
});
</script>
</head>
<body>
<style>
.brd {
padding: 20px;
border: 1px solid #8B4513;
/*** Adding in CSS3 ***/
/*** Rounded Corners ***/
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
/*** Background Gradient - 2 declarations one for Firefox and one for Webkit ***/
background: -moz-linear-gradient(19% 75% 90deg,#FFCC33, #DAA520);
background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFF00), to(#FFCC33));
/*** Shadow behind the box ***/
-moz-box-shadow:0px -5px 200px #FFFF00;
-webkit-box-shadow:0px -5px 200px #FFFF00;
}
.text {
text-align: center;
.outline {
border: 1px solid red;
padding: 0 10px;
}
</style>
<div class="w1">
<div id="wrapper">
<header id="header">
<div class="logo">
<img src="LOGO.jpg" alt="Image description" >
</div>
<div class="header-holder">
<div class="bar">
<span class="phone">8(925)020-72-73</span>
<span>По всей России звонок БЕСПЛАТНЫЙ</span>
<a style="top:-14px" href="#popup1" class="button open"><strong>Записаться на первое занятие</strong></a>
</div>
</div>
<div id="block">
<strong> Заявка принята</strong>
</div>
</header>
<div id="fon"></div>
<div class="block-product">
<figure>
<h2> </h2>
</figure>
</div>
<div class="brd block-order_top">
<form method="POST" action="" class="call-form">
<fieldset><h2>ЗАКАЗ ЗВОНКА</h2>
<div class="row" >
<input type="text" name="name" placeholder="Имя" >
</div>
<div class="row" >
<input type="text" name="phone" placeholder="Телефон">
</div>
<div class="row" >
<input type="text" name="email" placeholder="Почта">
</div>
<div class="orange">
<input type="submit" name="newuser" value="Оставить Заявку!">
</div>
</fieldset>
</form>
</div>
<section class="block-reasons">
<center><p style="position: relative;z-index: 1;color: white;">Внимание акция!!! Первое занятие бесплатно! Успей Записаться</p></center>
<script type="text/javascript" src="http://timegenerator.ru/s/856e64e88818cd49420b72f58628658a.js"></script>
<h2>5 причин заниматься у нас:</h2>
<ul>
<li>
<h3>1. Сотрудники</h3>
<p style="text-align:center">Первоклассный Тренерский штаб</p>
</li>
<li>
<h3>2. Программа</h3>
<p style="text-align:center">Уникальная система тренировок</p>
</li>
<li>
<h3>3. Подход</h3>
<p style="text-align:center">К каждому юному футболисту мы найдем индивидуальный подход</p>
</li>
<li>
<h3>4. Будущее</h3>
<p style="text-align:center">Мы гарантируем выход на профессиональный уровень</p>
</li>
<li>
<h3>5. Коллектив</h3>
<p style="text-align:center">Воспитание бок о бок со сверстниками</p>
</li>
</ul>
</section>
<section class="block-info">
<h2 class="title">Как мы работаем:</h2>
<ul class="steps">
<li>
<figure class="image">
<img src="img05.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>Вы оставляете у нас заявку</strong>
</li>
<li>
<figure class="image">
<img src="zzz.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>Мы оповещаем вас о первом занятии</strong>
</li>
<li>
<figure class="image">
<img src="images.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>Ваш ребенок тренируется вместе с командой</strong>
</li>
<li>
<figure class="image">
<img src="images/img08.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>ВВВВВВВ</strong>
</ul>
</section>
<div class="brd block-order_footer">
<form method="POST" action="" class="call-form">
<fieldset><h2>ЗАКАЗ ЗВОНКА</h2>
<div class="row" >
<input type="text" name="name" placeholder="Имя" >
</div>
<div class="row" >
<input type="text" name="phone" placeholder="Телефон">
</div>
<div class="row" >
<input type="text" name="email" placeholder="Почта">
</div>
<div class="orange">
<input type="submit" name="newuser" value="Оставить Заявку!">
</div>
</fieldset>
</form>
</div>
<footer id="footer">
<p>Звоните нам! <span class="phone">8(925)020-72-73</span></p>
</footer>
</div>
</div>
</body>
</html>
<? } ?> |
|
И вот index.html
| 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
| <?PHP
if (!empty($_POST['newuser'])){
$myemail = "anton_vr@mail.ru";
$email = $_POST['email'];
$name = $_POST['name'];
$phone = $_POST['phone'];
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
echo "E-mail (Mail) указан неверно, вводим правильно !";
exit();
}
$headers = "Content-Type: text/plain; charset=UTF-8\r\n";
$headers .= "From: ".$email."\r\n";
$mails = mail($myemail,"Заказной звонок", "Меня зовут -".$name." Позвоните на мой номер -".$phone , $headers );
if($mails){
echo "Ваша заявка принята! Пожалуйста перезагрузите страницу.";
}else{
echo "Не могу отправить, у меня проблемы, ERRORS !";
}
}else{
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Футбольная школа</title>
<link media="all" type="text/css" rel="stylesheet" href="all.css" />
<link media="all" rel="stylesheet" href="fancybox.css" />
<link rel="stylesheet" href="validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="jquery.validationEngine1.js" type="text/javascript"></script>
<script src="jquery.validationEngine-ru.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery.main.js"></script>
<script type="text/javascript">
$(function(){
$(".form-order,.call-form").validationEngine();
});
</script>
</head>
<body>
<style>
.brd {
padding: 20px;
border: 1px solid #8B4513;
/*** Adding in CSS3 ***/
/*** Rounded Corners ***/
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
/*** Background Gradient - 2 declarations one for Firefox and one for Webkit ***/
background: -moz-linear-gradient(19% 75% 90deg,#FFCC33, #DAA520);
background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFF00), to(#FFCC33));
/*** Shadow behind the box ***/
-moz-box-shadow:0px -5px 200px #FFFF00;
-webkit-box-shadow:0px -5px 200px #FFFF00;
}
.text {
text-align: center;
.outline {
border: 1px solid red;
padding: 0 10px;
}
</style>
<div class="w1">
<div id="wrapper">
<header id="header">
<div class="logo">
<strong>Academic</strong>
<p id="semki" style="margin-top:-5px;">ВВВВВВВ</p>
</div>
<div class="header-holder">
<div class="bar">
<span class="phone">8(925)020-72-73</span>
<a style="top:-14px" href="#popup1" class="button open"><strong>Записаться на первое занятие</strong></a>
</div>
</div>
</header>
<div id="fon"></div>
<div class="block-product">
<figure>
<h2> </h2>
</figure>
</div>
<div class="brd block-order_top" style="left:95px">
<form method="POST" action="" class="call-form">
<fieldset><h2>ЗАКАЗ ЗВОНКА</h2>
<div class="row" >
<input type="text" name="name" placeholder="Имя" >
</div>
<div class="row" >
<input type="text" name="phone" placeholder="Телефон">
</div>
<div class="orange">
<input type="submit" name="newuser" value="Оставить Заявку!">
</div>
</fieldset>
</form>
</div>
<section class="block-reasons">
<div id="akciya">
<center><p style="position: relative; margin-top:25px; z-index: 1;color: white;">Внимание акция!!! Первое занятие бесплатно!<br> Успей Записаться</p></center>
</div>
<div id="time">
<script type="text/javascript" src="http://timegenerator.ru/s/856e64e88818cd49420b72f58628658a.js "></script>
</div>
<h2>5 причин заниматься у нас:</h2>
<ul>
<li>
<h3>1. Сотрудники</h3>
<p style="text-align:center">Первоклассный Тренерский штаб</p>
</li>
<li>
<h3>2. Программа</h3>
<p style="text-align:center">Уникальная система тренировок</p>
</li>
<li>
<h3>3. Подход</h3>
<p style="text-align:center">К каждому юному футболисту мы найдем индивидуальный подход</p>
</li>
<li>
<h3>4. Будущее</h3>
<p style="text-align:center">Мы гарантируем выход на профессиональный уровень</p>
</li>
<li>
<h3>5. Коллектив</h3>
<p style="text-align:center">Воспитание бок о бок со сверстниками</p>
</li>
</ul>
</section>
<section class="block-info">
<h2 class="title">Как мы работаем:</h2>
<ul class="steps">
<li>
<figure class="image">
<img src="img05.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>Вы оставляете у нас заявку</strong>
</li>
<li>
<figure class="image">
<img src="zzz.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>Мы оповещаем вас о первом занятии</strong>
</li>
<li>
<figure class="image">
<img src="images.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>Ваш ребенок тренируется вместе с командой</strong>
</li>
<li>
<figure class="image">
<img src="images/img08.jpg" alt="Image description" width="144" height="144">
</figure>
<strong>Результат заметен в течении месяца!</strong>
</ul>
</section>
<div class="brd block-order_top"style="left:185px">
<form method="POST" action="" class="call-form">
<fieldset><h2>ЗАКАЗ ЗВОНКА</h2>
<div class="row" >
<input type="text" name="name" placeholder="Имя" >
</div>
<div class="row" >
<input type="text" name="phone" placeholder="Телефон">
</div>
<div class="orange">
<input type="submit" name="newuser" value="Оставить Заявку!">
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
</body>
</html> |
|
Когда в корне сайта лежит файл index.php, сайт открывается нормально, но стоит мне закинуть туда html переименованный в php, то открывается пустая страница, но мне нужно именно чтобы html( переименованный в php) лежал в корне сайта. В чем проблема?
Добавлено через 10 минут
В конце кода не было
<? } ?>
0
|