Support » Fixing WordPress » Can I include HTML in a custom field’s value?

  • Resolved PatBarrettcomnetorginfo


    I’m trying to write a couple cells of an HTML table into my custom field, so that I can dynamically add options to a PayPal button. Here’s my code on index.php:

     <?php $options = "get options"; echo get_post_custom_values('options'); ?>
    <td><input type="image" src="" border="0" align="middle" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="" width="1" height="1">

    The value for “options” is:

    <input type="hidden" name="on0" value="Signed?">Signed?</td><td><select name="os0">
    	<option value="yes">yes </option>
    	<option value="no">no </option>
    </select> </td>
    <td><input type="hidden" name="on1" value="Inscription [ optional ]">Inscription [ optional ]</td><td><input type="text" name="os1" maxlength="60"></td>

    All this does right now is display the word “array” ( Does anybody know anything else I should be doing?


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I include HTML in a custom field’s value?’ is closed to new replies.