-
Notifications
You must be signed in to change notification settings - Fork 19
/
how.html
188 lines (168 loc) · 6.56 KB
/
how.html
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
<!DOCTYPE html>
<!--
/*~ how.html
.---------------------------------------------------------------------------.
| Software: SMTP PHP Contact Form |
| Version: 1.3 |
| Contact: kodofisi.org |
| Info: http://kodofisi.org |
| Support: http://kodofisi.org |
| ------------------------------------------------------------------------- |
| Admin: Mehmet Koçak (project admininistrator) |
| Copyright (c) 2014-2015, Mehmet Koçak. All Rights Reserved. |
| ------------------------------------------------------------------------- |
*/
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>PHP Contact Form / How to Use? - kocakmhmt</title>
<meta name="description" content="SMTP PHP Contact Form / kodofisi.org">
<meta name="author" content="Mehmet Koçak">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<link href='http://fonts.googleapis.com/css?family=Raleway:500' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
</head>
<body>
<div class="logobar">
<center><a href="index.php"><img src="images/logo.png" alt="kocakmhmt logo"></center></a>
</div>
<div class="linkler">
<center><a href="index.php">Contact Form</a> <a href="about.html">What is this?</a> <a class="active" href="how.html">How to Use?</a> <b><a target="_blank" href="https://github.com/kocakmhmt/SMTP-PHP-Contact-Form">Download!</a> <a target="_blank" href="https://www.paypal.me/kocakmhmt"><img height="40" width="130" src="http://www.kocakmhmt.com/phpmailer/images/paypal.png"></a></b></center>
</div>
<div id="container2">
<h2>How to Use?</h2>
<p>First, include the code your page for SECURITY image</p>
<textarea readonly>
<?php session_start(); ?>
</textarea>
<p>Include jQuery on your page</p>
<textarea readonly>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
</textarea>
<p>This code should be included between <b>HEAD TAG</b> to control by jQuery</p>
<textarea id="how" readonly>
<script type="text/javascript">
function gostergizle()
{
$("div#container").show(100);
}
function sendmessage(){
var veriler = $('#contact_form').serialize();
$.ajax({
type: "POST",
url: "inc/send.php",
data: veriler,
success:function(cevap){
$("#send").html(""+cevap);
$("div#container").hide(100);
}
})};
function formReset(id) {
$('#'+id).each(function(){
this.reset();
});
}
function kontrolet(){
var name=$('#name').val();
name=jQuery.trim(name);
var email=$('#email').val();
email=jQuery.trim(email);
var mess=$('#text').val();
mess=jQuery.trim(mess);
var tel=$('#phone').val();
tel=jQuery.trim(tel);
var guvenlikKodu=$('#guvenlikKodu').val();
guvenlikKodu=jQuery.trim(guvenlikKodu);
if(name==''){
alert("Please check your name");
}
else if(email==''){
alert("Please check your E-Mail");
}
else if (tel==''){
alert("Please check your Phone");
}
else if (guvenlikKodu==''){
alert("Security code is empty!");
}
else if(mess==''){
alert("Please check your Message");
}
else { sendmessage() }
}
</script>
</textarea>
<p>This <b>CONTACT FORM</b> codes in <b>index.php</b>:</p>
<textarea style="height:425px" readonly>
<form class="form" id="contact_form" name="contact_form" method="post" action="javascript:void(0);">
<p class="name">
<input type="text" name="name" id="name" placeholder="Your Name*" required/>
<label for="name">Name Surname<font color="red">*</font></label>
</p>
<p class="email">
<input type="email" name="email" id="email" placeholder="[email protected]*" required />
<label for="email">Email<font color="red">*</font></label>
</p>
<p class="phone">
<input type="tel" name="phone" id="phone" placeholder="+00123456789*" required/>
<label for="phone">Phone<font color="red">*</font></label>
</p>
<p class="web">
<input type="url" name="web" id="web" placeholder="www.example.com" />
<label for="web">Website</label>
</p>
<p class="sec">
<select name="subject">
<option value="General">General</option>
<option value="product">Product Support</option>
<option value="new">New Business</option>
<option value="other">Other</option>
</select>
<label>Contact Reason</label>
</p>
<input type="text" name="guvenlikKodu" id="guvenlikKodu" required />
<label for="guvenlikKodu"></label>
<img src="inc/captcha.php" />
<p class="text">
<textarea id="text" name="text" id="text"placeholder="Your Message*" required/><textarea>
</p>
<p class="submit">
<input type="submit" onclick="kontrolet()" value="Send" />
<input type="reset" value="Reset" />
</p>
</form>
</div>
<div style="margin-top: 80px" id="send"></div>
</textarea>
<p> Codes which you must change in <b>inc/send.php</b></p>
<textarea style="height:110px" readonly>
$mail->Host = "mail.kodofisi.org"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "[email protected]"; // SMTP username
$mail->Password = "password"; // SMTP password
$mail->From = "[email protected]"; // it must be a match with SMTP username
$mail->Fromname = "Mehmet Koçak"; // from name
$mail->AddAddress("[email protected]","Mehmet Koçak"); // SMTP username , Name Surname
</textarea>
</div>
</div>
<center><script type="text/javascript" src="http://app.winwords.adhood.com/95116,220,90"></script></center>
<center><script type="text/javascript" src="http://app.winwords.adhood.com/92964,670,90"></script></center>
<div class="footer">
<p>Mehmet Koçak © 2015
<a href="http://twitter.com/kocakmhmt"><img src="images/twitter.png" /></a>
<a href="mailto:[email protected]"><img src="images/mail.png" /></a></p>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47181399-2', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>