In Progress

Encrypt a text box in a form, modify email output of form

I have two custom attributes input boxes on the ssl portion of my website. I would like for the data that is entered into the two custom attribute boxes to be encrypted. When I go to the backend of the website where the form info is logged I will need to be able to see the content of those two custom attribute boxes. Currently the fields are not encrypted and can be viewed via the website dashboard.

Once the data is entered the form then generates an email to the user, and to the page admin. In that email all the fields are displayed, including the custom attributes. I would like to remove these attributes from the email.

In addition to the email, once the form is submitted and the emails are generated the website loads a page that displays all the info that was listed into the form. I would like the two custom attributes to be set not to display on the page that is generated once the form is submitted.

The files that determine what fields are displayed are php files.

For the email their are two php files one that generates the email to the form submitter, and another php file that generates the email the goes to the website admin.

For the page that is displayed after the form is submitted I believe it's content is controlled via one php file.

To summarize encryption on two fields on a form.

modification of three(possibly more) php files to not display the information of those fields in emails generated or on the confirmation page that is shown after the form is submitted.

The website and form are part of the Concrete 5 CMS

Below is the php file that generates one of the emails that is created.

#####################################################################

<?php defined('C5_EXECUTE') or die(_("Access Denied."));

$body .= $blurb . "\n\n";

$body .= "========== ORDER INFORMATION ==========\n";

$body .= "Order #: ".$invoiceNumber."\n";

$body .= "Total: ".$totalAmount."\n";

for ($i = 0; $i < count($products); $i++) {

$body .= "Product #" . ($i+1) . ": " . $products[$i]['name'];

if (count($products[$i]['attributes'])) {

$body .= " (" . implode(",", $products[$i]['attributes']) . ")";

}

$body .= "/" . $products[$i]['quantity'] . " @ ". $products[$i]['price'] . "\n";

}

for ($i = 0; $i < count($adjustments); $i++) {

$body .= "Adjustment #" . ($i+1) . ": " . $adjustments[$i]['name'] . "/" . $adjustments[$i]['total'] . "\n";

}

$body .= "\n";

if (isset($shipping) || isset($shipping_attrs)) {

$body .= "========= BILLING INFORMATION =========\n";

} else {

$body .= "==== BILLING/SHIPPING INFORMATION =====\n";

}

$body .= "First Name: " . $billing['first_name'] . "\n";

$body .= "Last Name: " . $billing['last_name'] . "\n";

$body .= "Email: " . $billing['email'] . "\n";

$body .= "Address1: " . $billing['address1'] . "\n";

$body .= "Address2: " . $billing['address2'] . "\n";

$body .= "City: " . $billing['city'] . "\n";

$body .= "State/Province: " . $billing['state'] . "\n";

$body .= "Zip/Postal Code: " . $billing['zip'] . "\n";

$body .= "Country: " . $billing['country'] . "\n";

$body .= "Phone: " . $billing['phone'] . "\n";

if (isset($billing_attrs)) {

foreach ($billing_attrs as $key => $val) {

$body .= "$key: $val\n";

}

}

$body .= "\n";

if (isset($shipping) || isset($shipping_attrs)) {

if (isset($shipping)) {

$body .= "======== SHIPPING INFORMATION =========\n";

$body .= "First Name: " . $shipping['first_name'] . "\n";

$body .= "Last Name: " . $shipping['last_name'] . "\n";

$body .= "Email: " . $shipping['email'] . "\n";

$body .= "Address1: " . $shipping['address1'] . "\n";

$body .= "Address2: " . $shipping['address2'] . "\n";

$body .= "City: " . $shipping['city'] . "\n";

$body .= "State/Province: " . $shipping['state'] . "\n";

$body .= "Zip/Postal Code: " . $shipping['zip'] . "\n";

$body .= "Country: " . $shipping['country'] . "\n";

$body .= "Phone: " . $shipping['phone'] . "\n";

}

if (isset($shipping_attrs)) {

foreach ($shipping_attrs as $key => $val) {

##

Skills: Javascript, MySQL, PHP, Shopping Carts, Web Security

See more: encrypt email text box, order custom javascript, encrypt javascript files, encrypt javascript file, three form, what is a php file, encrypt php code, val , remove my page in, modify code, encrypt, php modify php file, cms php billing, php remove text, php modify form, output php, city province state country zip code, remove text php, modify access, website form backend, province city state, modification form, modify javascript code, php encrypt file, generated cms

About the Employer:
( 2 reviews ) st louis, United States

Project ID: #1273474

Awarded to:

mhanif

Pretty Straight Forward Job. Just need to discuss this a bit and i am ready to start. I have strong command in PHP and good enough skills to complete this task.

$50 USD in 1 day
(103 Reviews)
5.9

5 freelancers are bidding on average $125 for this job

phpsolutionsuk

I can complete this for you in a day or two.

$150 USD in 2 days
(56 Reviews)
6.9
coder9

Hi, Please check PMB for more details, thanks!

$100 USD in 2 days
(37 Reviews)
5.5
techyash

.net/php experienced

$225 USD in 2 days
(2 Reviews)
2.8
sarkarsmtr

I can do this

$100 USD in 2 days
(0 Reviews)
0.0