Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using values from the db in your textfield/ddlb?

  • Hi,

    You can add values into a textfield like this:

    <input type="text" name="number_of_topics" id="number_of_topics" value="<?php echo bb_get_option( 'bbp_number_of_topics' ); ?>"/>

    Now there will be a value when the texfield is loaded. But what if there is no value, how can I let it show 0 then? using : 0 wont work.

    Sec question:

    Same tactics as above, but now with a ddlb. I can’t get this fixed. How can i show the value in a ddlb?

    Got this:

    <td><?php forum_dropdown(); ?></label></td> but where do I put that value thingy?

    Many thx

    _Null

  • You must be logged in to reply to this topic.
Skip to toolbar