Jump to content

Passing Array to Option List Help...


savagenoob

Recommended Posts

I am passing an array to an option list but if a value has two words, the second word doesnt get sent via POST. So if the value should be THE ONE, the word ONE doesnt get sent via POST. Kinda wierd, wondered if there is an easy explanation for this?

<?php echo '<SELECT name=carrier>';

foreach ($allcar as $key => $value) {
    echo '<OPTION value=' . $value . '> ' . $value . '';
}

echo '</select>'; ?>

Link to comment
https://forums.phpfreaks.com/topic/251351-passing-array-to-option-list-help/
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.