Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to get the value from two input fields and pass them as the name in a form.

In my code, I am hardcoding the value of the price range in for testing purposes.

            echo 'PRICE RANGE:';
            echo 'Low: <input type="text" name="t[pr_100000]" value="" maxlength="25" /> High: <input type="text" name="t[ph_10000000]" value="" maxlength="25" />';

            echo 'STATUS:';
           $termsStatus = get_terms( 'Status', array(
                  'hide_empty' => 0
                  ) );
            echo '<ul>';
                foreach ($termsStatus as $term_st) {
                    $termsStatus = $term_st->name . 'PropertyFilter';
                    echo '<li><label><input type="checkbox" name="t[st_' . $term_st->name . ']"  value="st_">' .$term_st->name. '</label></li>';
                }
            echo '</ul>';

Any suggetions? Thanks in advance!

share|improve this question
    
Hi graphical_force, this is a PHP question and would be better asked over on stackoverflow.com. –  Wyck Aug 7 '13 at 5:15
    
Sure, is this something I could move myself? If so, how would i do it? Thanks! –  graphical_force Aug 7 '13 at 5:18
    
A moderator can move it, though they might be asleep:) –  Wyck Aug 7 '13 at 5:21
    
Understood. It's about bedtime for me as well. I check in the morning. Thanks again! –  graphical_force Aug 7 '13 at 5:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.