Hi guys,

Trying to implement a return module in magento but got a strange problem.
I'm passing values from a while loop into another page with values.

Everithing is working well but my first elements of a produs and sku are empty and I dont know why ....

The line with the data is

$retur_pas_final .= '<tr><td><input type="text" name="produs[]" value="'.$nume_produs[1].'" readonly="readonly" ></td><td><input type="text" name="sku[]" value="'.$key.'" readonly="readonly"></td><td>'.$motiv.'</td><td><input type="text" name="observatii[]" /></td></tr>';




[ok] => 37
[motiv] => Array
    (
        [0] => 0
        [1] => 1
        [2] => 2
    )

[observatii] => Array
    (
        [0] => 
        [1] => 
        [2] => 
    )

[produs] => Array
    (
        [0] => CEPSA XTAR MEGA TECH 5W30 DPF 1 L
        [1] => CEPSA MOTO 2T 100 SINTETICO  1 L
    )

[sku] => Array
    (
        [0] => 5119341
        [1] => 5162241
    )`

Do the values come from the $nume_produs[1] and $key variables? Where do they get assigned and what from?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.