I'm pretty new to php, so please bear with me if I'm overlooking some obvious things here! I have an html form which gets sent to a php page that processes it. On the processing page I'm putting the form values into php variables like this:
$rv001LineCode = $POST['rv001Code'];
$rv001LineDescrip = $POST['rv001Descrip'];
$rv001LinePrice = $POST['rv001Price'];
$rv001LineStatus = $POST['rv001Status'];
$rv001LineColours = $_POST['rv001Colours'];
$rv002LineCode = $POST['rv002Code'];
$rv002LineDescrip = $POST['rv002Descrip'];
$rv002LinePrice = $POST['rv002Price'];
$rv002LineStatus = $POST['rv002Status'];
$rv002LineColours = $_POST['rv002Colours'];
...and this goes on up to number 47! It's the same with putting the values into an array. How do I loop them into variables/arrays using less code?
Thanks!