-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpaypal.php
92 lines (78 loc) · 3.54 KB
/
paypal.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
<?php
require_once('inc/functions.inc.php');
// Start the session
session_start();
?>
<!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" xml:lang="en" lang="en">
<head>
<title>Shoppers Stop</title>
<link rel="stylesheet" type="text/css" href="css/b1.css">
<script type="text/javascript">
function validateForm()
{
var x=document.forms["my"]["eadd"].value
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
{
alert("Not a valid e-mail address");
return false;
}
var x=document.forms["my"]["pass"].value
if (x==null || (x.length<8))
{
alert("Please enter your correct password");
return false;
}
var x=document.forms["my"]["add"].value
if (x==null || x=="")
{
alert("Please enter your address");
return false;
}
}
</script>
</head>
<img src="images/logo.jpg" /> <a href="cart.php" >View Cart</a>
<div class="menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="mens.php" id="current">Mens</a></li>
<li><a href="womens.php" id="current">Womens</a></li>
<li><a href="#" >Contact Us</a></li>
<li><a href="#" >About Us</a></li>
</li>
</ul>
</div>
<body>
<br>
<br>
<span style="color: rgb(51, 104, 155); font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 21px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
Pay with Paypal Account</span><br />
<img src="images/paypal.png" />
<form name="my" action="paypals.php" onsubmit="return validateForm()" method="post">
<p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; position: relative; min-height: 2em; ">
<label for="eadd" style="display: block; float: left; clear: left; width: 180px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: right; ">
<span style="display: block; ">E-mail Address</span></label>
<span style="display: block; margin-left: 200px; ">
<input id="eadd" maxlength="19" name="eadd" type="text" value="" /></span></p>
<p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; position: relative; min-height: 2em; ">
<label for="pass" style="display: block; float: left; clear: left; width: 180px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: right; ">
<span style="display: block; ">Password</span></label>
<span style="display: block; margin-left: 200px; ">
<input id="pass" maxlength="19" name="pass" type="password" value="" /></span></p>
<p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; position: relative; min-height: 2em; ">
<label for="address" style="display: block; float: left; clear: left; width: 180px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: right; ">
<span style="display: block; ">Billing Address</span></label>
<span style="display: block; margin-left: 200px; ">
<input id="add" maxlength="19" name="add" type="text" value="" /></span></p>
<br>
<input type="submit" value="Submit" />
<input type="reset" value="Cancel" />
</form>
<?php
session_destroy();
?>
</body>
</html>