Help with php.... - Forum

Forum Navigation
You need to log in to create posts and topics.

Help with php....

Hello everyone
I need help with a program made in php, which works fine,

As an example, these lines work correctly.

<h3>Shipping details:</h3>

<span class="label">Package weight:</span><br>
<span class="label2"><?php echo $box_weight;?></span><br><br>

The response appears like this:

<h3>Shipping details:</h3>

<span class="label">Package weight:</span><br>
<span class="label2">14</span><br><br>

which is expected.

It happens that I need to save the html response in a file, which, when I see it with the "view-source" option of the webbrowser (chrome), works perfectly.

The problem is that all attempts to save the response in a file using php, the fields indicated in the source appear empty.

Does anyone have any idea how to fix it?

infinite thanks

sometimes brute force gives unexpected results...

In this case, it's already working.

 

cheers,