Jump to content

in help in $_POST[$i."1"]


btkaruna

Recommended Posts

the $_POST array is an array that holds all of your submitted values from your form. the stuff inside the [] points to which position in the array. the $i."1" is taking the value of $i and concactonating 1 to it.  I assume that there is a loop where $i is incremented or something, so one one of those iterations of the loop, it might actually look like $_POST[11], $_POST[21], $_POST[31], etc... those being the 12th, 22nd, and 32nd positions in the $_POST array (because arrays start at zero, not 1). 

What value the $_POST[11] (example) holds can be anything.  Look at the form you got the posted info from.  it's being inserted into your dValue column in your db so that might help you.
Link to comment
https://forums.phpfreaks.com/topic/18505-in-help-in-_posti1/#findComment-79921
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.