Jump to content

increment $_POST['value1'] $_POST['value2'] $_POST['value3'] etc


at0mic

Recommended Posts

Instead of:

 

$_POST['value1']

$_POST['value2']

$_POST['value3']

$_POST['value4']

$_POST['value5']

 

How can I auto increment them? I've tried using a while array but I cant get a variable to work inside the field. I've tried these:

 

$_POST['value$number'] or $_POST['value{$number}'] or $_POST['value"$number"'] but none of them work. Is it possible to do?

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.