-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpaypals.php
30 lines (25 loc) · 843 Bytes
/
paypals.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
<?php
$db_name="stshop";
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("$db_name") or die(mysql_error());
$eadd = $_POST['eadd'];
$pass = $_POST['pass'];
$add = $_POST['add'];
$pas = md5($pass);
//$sql="insert into paypal ('$eadd','$pas','$add')";
$sql="INSERT INTO paypal (eadd, pass, add) VALUES('$eadd','$pas','$add')";
$result=mysql_query($sql);
if ($result) {
header("Location: index.php");
echo "<b>Thank you for shopping...</b>";
echo "Your will recive your product within the next 3 days.";
echo '<a href="index.php">Visit again</a>';
} else {
header("Location: index.php");
echo "<b>Thank you for shopping...</b>";
echo "Your will recive your product within the next 3 days.";
echo '<a href="index.php">Visit again</a>';
//echo "Please enter your details correctly...";
}
mysql_close();
?>