Hi, i've adapted a CGI script i've downloaded for a server to create an order form that imports order details. It also uses formail to send this info by email.
What i need help is with adding code to the script that sends an identifier cookie to the users browser, so the next time the user visits my site their information will be retreived from an encypted file within the server.
I want the scirpt to do the following:
1) Check if the user has a valid cookie. 2a) If No - Sends an identifier cookie and copies the data inputted in the selected fields; saving it in an encrypted text file on the server. 2b) If Yes – Reads the identifier in the cookie and retrieves the information it relates to in the encrypted text file to the relevant fields.
The script below creates a form with the users address fields for the registered and delivery address. It also creates a comment field.
The details i want to store in the encrypted text file are all the registered address flelds except Authorization_code, so therefore - Name_Billing, Address_Billing, City_billing, City_Billing, Phone_billing and Email_Billing.
Any help will be much appreciated. Anyone wishing to use script below for any purpose are free to do so.
Address</strong></font></td><td width="242" bgcolor="#FFFFFF"><font face="Arial" size="2" color="#000000"><strong>This information (except Authorisation_code) will be remembered for the next time you visit. You will NOT need to complete this form each time you order, just as long as you don't delete our cookies from your browser</font></strong></font></td>
<td><font face="Arial" size="2" color="#000000"> COMMENT: - If you require the meal to be delivered at a certain time or wish any changes to be made to the dish i.e. hot, mild etc. Please tell us here.