Hello! New here.
I'm refactoring an old app from PHP4 into PHP5 and because I am a n00b I hadn't really future-proofed it at the time
I'm trying to pass an array through an HTML form, using the following code which works on PHP4 but is broken in PHP5:
<!--the form select itself (the locationselect function is just grabbing some entries from the DB, that works fine):-->
<select name="strLocations[]" multiple="yes" size="6" style="width:160px;"><?php echo (locationselect()); ?></select>
<!--the print on the following page:-->
print "locations:". $_POST['strLocations'] ."!";
The print is just blank - it is, of course, a syntax error, but I don't know what the right syntax actually is. A quick pointer would be much appreciated.
Cheers,
4eB