Support

Account

Home Forums General Issues Display selected value in Php Reply To: Display selected value in Php

  • I can make the possible values displayed one a page. But not the selected one.

    The code i’m using so far:

    <?php
    $beschikbaar = get_field('beschikbaar');
    ?>
    <select name="beschikbaar" id="beschikbaar">
      <option>Maak je keuze</option>
      <?php
        foreach($beschikbaar as $beschikbaar) { ?>
          <option value="<?php echo $beschikbaar; ?>"><?php echo $beschikbaar; ?></option>
      <?php
        } ?>
    </select>
  • We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.