Seçeneğini seçin ve seçeneğini kullanarak ve POST sonra hatırlayarak

0 Cevap php

Seçenekte HTML etiketlerini kullanarak, $ _POST kullanarak aracılığıyla bilgi aktarmak.

When reloading the page however, the select resets back to the original values. I am looking to get it to remember what has been passed through.

<?php
        foreach($data as $value => $title)
        {
            foreach($ag as $first) 
            {
                foreach($af as $second) 
                {
                    echo"<option value='$value-$first-$second'>$title - $first - $second</option>";
                }
            }
        }
        ?>

As you can see, I use 3 foreach loops to populate whats in it. How can I achieve my selection being remembered?

Okuduğunuz için teşekkürler.

0 Cevap