PHP Form Values to MD5 /Seialize/Unserialize

  • Status Completed
  • Budget $30 - $250 USD
  • Total Bids 12

Project Description

Hello there,

I have a simple PHP shopping cart that I bought from code canyon, It's called "Simple Cart"

What I need done is a simple tweak that changes the way the create the add to cart button form, and the way it's processed.

When we create a product button,

It takes the form values and creates an array of those vales called $product_settings.

if(isset($_POST['save']) && $_POST['save']){

$product_settings = array(

'name' => $_POST['name'],

'weight' => $_POST['weight'],

//'shipping' => $_POST['shipping'],

'attr' => ((is_array($_POST['attr'])) ? $_POST['attr'] : array()),



$qd_settings = '';


$qd_settings = '<input type="hidden" value="'.$_REQUEST['qdr'].'" name="qd">';


$product_settings_encoded = base64_encode(serialize($product_settings));

$hash = md5('my not so s3cret code heh'.$product_settings_encoded);

$product_settings_encoded = $product_settings_encoded . '|' . $hash;

It serializes the array

It then encodes into Base64, as well as adding a hash, and separates with a |

I would like my vales to be raw and editable, in the form without being serialized, and without being encoded into Base64.

I also would like to get rid of the hash.

Once this part is done,

I will open up a new project for "Processing" this data, instead of the way it handles now, where it "unserializes" everything and reads the hash, etc.

please let me know



Well I don't want the product settings "encoded"

I want everything to work the same way , without being encoded.

Get free quotes for a project like this
Completed by:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online