-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaveinfo-ec.php
235 lines (214 loc) · 12.4 KB
/
saveinfo-ec.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?php
session_start();
if (isset($_POST['submit']))
{
$myfile = fopen("data\EC-quote.txt", "w") or die("Unable to open file");
$h1 = 'NEW DOMESTIC SHIPPING ORDER!'."\r\n\r\n";
fwrite($myfile, $h1);
//Package Origin - Domestic Shipping
$package_origin = 'PACKAGE ORIGIN'."\r\n";
fwrite($myfile, $package_origin);
$name = 'Name = '.$_SESSION['name_ec']."\r\n"; //name
fwrite($myfile, $name);
$contactname = 'Contact Name = '.$_SESSION['contactname_ec']."\r\n"; //contact name
fwrite($myfile, $contactname);
$gender = 'Gender = '.$_SESSION['gender_ec']."\r\n"; //gender
fwrite($myfile, $gender);
$title = 'Title = '.$_SESSION['title_ec']."\r\n"; //title
fwrite($myfile, $title);
$phone = 'Phone = '.$_SESSION['phone_ec']."\r\n"; //phone
fwrite($myfile, $phone);
$country = 'Country = '.$_SESSION['country_ec']."\r\n"; //country
fwrite($myfile, $country);
$state = 'State = '.$_SESSION['state_ec']."\r\n"; //state
fwrite($myfile, $state);
$city = 'City = '.$_SESSION['city_ec']."\r\n"; //city
fwrite($myfile, $city);
$zipcode = 'Zip Code = '.$_SESSION['zipcode_ec']."\r\n"; //zip code
fwrite($myfile, $zipcode);
$street_address = 'Street Address = '.$_SESSION['address_ec']."\r\n"; //street address
fwrite($myfile, $street_address);
$address2_apt = 'Street Address 2/Apartment, Suite, Floor etc = '.$_SESSION['apt_ec']."\r\n"; //Apartment, Suite, Floor etc
fwrite($myfile, $address2_apt);
$department = 'Department = '.$_SESSION['dept_ec']."\r\n"; //department
fwrite($myfile, $department);
$email = 'Email = '.$_SESSION['email_ec']."\r\n"; //email
fwrite($myfile, $email);
$pickupdate = 'Pickup Date = '.$_SESSION['pickupdate']."\r\n"; //Pickup Date
fwrite($myfile, $pickupdate);
$pickuptime = 'Pickup Time = '.$_SESSION['pickuptime']."\r\n"; //Pickup Time
fwrite($myfile, $pickuptime);
$residential_add = 'Residential Address? = '.$_SESSION['resAdd_ec']."\r\n"; //residential address
fwrite($myfile, $residential_add);
$package_upd8 = 'Package Updates? = '.$_SESSION['pkg_update_ec']."\r\n\r\n\r\n"; //Package updates
fwrite($myfile, $package_upd8);
//Return Address - Domestic Shippiing
$return_address = 'RETURN ADDRESS'."\r\n";
fwrite($myfile, $return_address);
$name_reAdd = 'Name = '.$_SESSION['name_ec_ra']."\r\n"; //name
fwrite($myfile, $name_reAdd);
$contactname_reAdd = 'Contact Name = '.$_SESSION['contactname_ec_ra']."\r\n"; //contact name
fwrite($myfile, $contactname_reAdd);
$gender = 'Gender = '.$_SESSION['gender_ec_ra']."\r\n"; //gender
fwrite($myfile, $gender);
$title_reAdd = 'Title = '.$_SESSION['title_ec_ra']."\r\n"; //title
fwrite($myfile, $title_reAdd);
$phone_reAdd = 'Phone = '.$_SESSION['phone_ec_ra']."\r\n"; //phone
fwrite($myfile, $phone_reAdd);
$country_reAdd = 'Country = '.$_SESSION['country_ec_ra']."\r\n"; //country
fwrite($myfile, $country_reAdd);
$state_reAdd = 'State = '.$_SESSION['state_ec_ra']."\r\n"; //state
fwrite($myfile, $state_reAdd);
$city_reAdd = 'City = '.$_SESSION['city_ec_ra']."\r\n"; //city
fwrite($myfile, $city_reAdd);
$zipcode_reAdd = 'Zip Code = '.$_SESSION['zipcode_ec_ra']."\r\n"; //zip code
fwrite($myfile, $zipcode_reAdd);
$street_reAddress = 'Street Address = '.$_SESSION['address_ec_ra']."\r\n"; //street address
fwrite($myfile, $street_reAddress);
$readdress2_apt = 'Street Address 2/Apartment, Suite, Floor etc = '.$_SESSION['apt_ec_ra']."\r\n"; //Apartment, Suite, Floor etc
fwrite($myfile, $readdress2_apt);
$department_reAdd = 'Department = '.$_SESSION['dept_ec_ra']."\r\n"; //department
fwrite($myfile, $department_reAdd);
$email_reAdd = 'Email = '.$_SESSION['email_ec_ra']."\r\n"; //email
fwrite($myfile, $email_reAdd);
$residential_reAdd = 'Residential Address? = '.$_SESSION['resAdd_ec']."\r\n"; //residential address
fwrite($myfile, $residential_reAdd);
$notify = 'Notify of return? = '.$_SESSION['notify_ec']."\r\n\r\n\r\n"; //status updates
fwrite($myfile, $notify);
//Package Destination - EC (Express Courier)
$package_dest = 'PACKAGE DESTINATION'."\r\n";
fwrite($myfile, $package_dest);
$name_dest = 'Name = '.$_SESSION['name_ec_dest']."\r\n"; //name
fwrite($myfile, $name_dest);
$contactname_dest = 'Contact Name = '.$_SESSION['contactname_ec_dest']."\r\n"; //contact name
fwrite($myfile, $contactname_dest);
$gender = 'Gender = '.$_SESSION['gender_ec_dest']."\r\n"; //gender
fwrite($myfile, $gender);
$title_dest = 'Title = '.$_SESSION['title_ec_dest']."\r\n"; //title
fwrite($myfile, $title_dest);
$phone_dest = 'Phone = '.$_SESSION['phone_ec_dest']."\r\n"; //phone
fwrite($myfile, $phone_dest);
$country_dest = 'Country = '.$_SESSION['country_ec_dest']."\r\n"; //country
fwrite($myfile, $country_dest);
$state_dest = 'State = '.$_SESSION['state_ec_dest']."\r\n"; //state
fwrite($myfile, $state_dest);
$city_dest = 'City = '.$_SESSION['city_ec_dest']."\r\n"; //city
fwrite($myfile, $city_dest);
$zipcode_dest = 'Zip Code = '.$_SESSION['zipcode_ec_dest']."\r\n"; //zip code
fwrite($myfile, $zipcode_dest);
$streetadd_dest = 'Street Address = '.$_SESSION['address_ec_dest']."\r\n"; //street address
fwrite($myfile, $streetadd_dest);
$streetadd2_dest = 'Street Address 2/Apartment, Suite, Floor etc = '.$_SESSION['apt_ec_dest']."\r\n"; //Apartment, Suite, Floor etc
fwrite($myfile, $streetadd2_dest);
$department_dest = 'Department = '.$_SESSION['dept_ec_dest']."\r\n"; //department
fwrite($myfile, $department_dest);
$email_dest = 'Email = '.$_SESSION['email_dest']."\r\n"; //email
fwrite($myfile, $email_dest);
$residential_dest = 'Residential Address? = '.$_SESSION['resAdd_ec_dest']."\r\n"; //residential address
fwrite($myfile, $residential_dest);
$notify_receiver = 'Notify Receiver? = '.$_SESSION['notify_dest']."\r\n\r\n\r\n"; //status updates
fwrite($myfile, $notify_receiver);
//Package Details - Domestic Shipping
$package_details = 'PACKAGE DETAILS'."\r\n\r\n";
fwrite($myfile, $package_details);
$firstpackage = '1ST PACKAGE DETAILS:'."\r\n";
fwrite($myfile, $firstpackage);
$package_type = 'Package Type = '.$_SESSION['package_type']."\r\n"; //Package Type
fwrite($myfile, $package_type);
$delivery_option = 'Delivery option = '.$_SESSION['delivery_options']."\r\n"; //Delivery options
fwrite($myfile, $delivery_option);
$pkgtype_other = 'Package Type (Other) = '.$_SESSION['other']."\r\n"; //Package Type (Other)
fwrite($myfile, $pkgtype_other);
$worth = 'Shipment Worth = '.$_SESSION['worth']."\r\n"; //worth
fwrite($myfile, $worth);
$weight = 'Weight = '.$_SESSION['weight']."\r\n"; //weight
fwrite($myfile, $weight);
$length = 'Length = '.$_SESSION['length']."\r\n"; //length
fwrite($myfile, $length);
$width = 'Width = '.$_SESSION['width']."\r\n"; //width
fwrite($myfile, $width);
$height = 'Height = '.$_SESSION['height']."\r\n"; //height
fwrite($myfile, $height);
$colour = 'Colour = '.$_SESSION['color']."\r\n"; //Colour
fwrite($myfile, $colour);
$texture = 'Texture = '.$_SESSION['texture']."\r\n"; //Texture
fwrite($myfile, $texture);
$package_description = 'Package Description = '.$_SESSION['package_description']."\r\n\r\n"; //package description
fwrite($myfile, $package_description);
$secondpackage = '2ND PACKAGE DETAILS:'."\r\n";
fwrite($myfile, $secondpackage);
$package_type = 'Package Type = '.$_SESSION['package_type_2']."\r\n"; //Package Type
fwrite($myfile, $package_type);
$delivery_option = 'Delivery option = '.$_SESSION['delivery_options_2']."\r\n"; //Delivery options
fwrite($myfile, $delivery_option);
$pkgtype_other = 'Package Type (Other) = '.$_SESSION['other_2']."\r\n"; //Package Type (Other)
fwrite($myfile, $pkgtype_other);
$worth = 'Shipment Worth = '.$_SESSION['worth_2']."\r\n"; //worth
fwrite($myfile, $worth);
$weight = 'Weight = '.$_SESSION['weight_2']."\r\n"; //weight
fwrite($myfile, $weight);
$length = 'Length = '.$_SESSION['length_2']."\r\n"; //length
fwrite($myfile, $length);
$width = 'Width = '.$_SESSION['width_2']."\r\n"; //width
fwrite($myfile, $width);
$height = 'Height = '.$_SESSION['height_2']."\r\n"; //height
fwrite($myfile, $height);
$colour = 'Colour = '.$_SESSION['color_2']."\r\n"; //Colour
fwrite($myfile, $colour);
$texture = 'Texture = '.$_SESSION['texture_2']."\r\n"; //Texture
fwrite($myfile, $texture);
$package_description = 'Package Description = '.$_SESSION['package_description_2']."\r\n\r\n"; //package description
fwrite($myfile, $package_description);
$thirdpackage = '3RD PACKAGE DETAILS:'."\r\n";
fwrite($myfile, $thirdpackage);
$package_type = 'Package Type = '.$_SESSION['package_type_3']."\r\n"; //Package Type
fwrite($myfile, $package_type);
$delivery_option = 'Delivery option = '.$_SESSION['delivery_options_3']."\r\n"; //Delivery options
fwrite($myfile, $delivery_option);
$pkgtype_other = 'Package Type (Other) = '.$_SESSION['other_3']."\r\n"; //Package Type (Other)
fwrite($myfile, $pkgtype_other);
$worth = 'Shipment Worth = '.$_SESSION['worth_3']."\r\n"; //worth
fwrite($myfile, $worth);
$weight = 'Weight = '.$_SESSION['weight_3']."\r\n"; //weight
fwrite($myfile, $weight);
$length = 'Length = '.$_SESSION['length_3']."\r\n"; //length
fwrite($myfile, $length);
$width = 'Width = '.$_SESSION['width_3']."\r\n"; //width
fwrite($myfile, $width);
$height = 'Height = '.$_SESSION['height_3']."\r\n"; //height
fwrite($myfile, $height);
$colour = 'Colour = '.$_SESSION['color_3']."\r\n"; //Colour
fwrite($myfile, $colour);
$texture = 'Texture = '.$_SESSION['texture_3']."\r\n"; //Texture
fwrite($myfile, $texture);
$package_description = 'Package Description = '.$_SESSION['package_description_3']."\r\n\r\n"; //package description
fwrite($myfile, $package_description);
$fourthpackage = '4TH PACKAGE DETAILS:'."\r\n";
fwrite($myfile, $fourthpackage);
$package_type = 'Package Type = '.$_SESSION['package_type_4']."\r\n"; //Package Type
fwrite($myfile, $package_type);
$delivery_option = 'Delivery option = '.$_SESSION['delivery_options_4']."\r\n"; //Delivery options
fwrite($myfile, $delivery_option);
$pkgtype_other = 'Package Type (Other) = '.$_SESSION['other_4']."\r\n"; //Package Type (Other)
fwrite($myfile, $pkgtype_other);
$worth = 'Shipment Worth = '.$_SESSION['worth_4']."\r\n"; //worth
fwrite($myfile, $worth);
$weight = 'Weight = '.$_SESSION['weight_4']."\r\n"; //weight
fwrite($myfile, $weight);
$length = 'Length = '.$_SESSION['length_4']."\r\n"; //length
fwrite($myfile, $length);
$width = 'Width = '.$_SESSION['width_4']."\r\n"; //width
fwrite($myfile, $width);
$height = 'Height = '.$_SESSION['height_4']."\r\n"; //height
fwrite($myfile, $height);
$colour = 'Colour = '.$_SESSION['color_4']."\r\n"; //Colour
fwrite($myfile, $colour);
$texture = 'Texture = '.$_SESSION['texture_4']."\r\n"; //Texture
fwrite($myfile, $texture);
$package_description = 'Package Description = '.$_SESSION['package_description_4']."\r\n\r\n"; //package description
fwrite($myfile, $package_description);
fclose($myfile);
}
// echo 'Data has been saved successfully.';
header ("Location: attach-ec.php");
?>