ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Unable to save to a weblog

November 23, 2010 5:16pm

Subscribe [2]
  • #1 / Nov 23, 2010 5:16pm

    stevepurcell

    5 posts

    I am trying to insert some data into a weblog using a simple html form.  I can get the
    name in, but the age field is not being stored.  The age field is a custom field using the default settings and is a text field.

    Here is my code:

    {exp:weblog:entry_form weblog="musicians_billboard"}
    <table width="600" border="1">
    <tr><td>Name:</td><td><input type="text" name="title" /></td></tr>
    <tr><td>Age:</td><td><input type="text" name="age" /></td></tr>
    <tr><td><input type="submit"  value="submit" /></td></tr>
    </table>
    {/exp:weblog:entry_form}

    Thanks
    Steve

  • #2 / Nov 24, 2010 3:36am

    John Henry Donovan

    12339 posts

    Steve,

    You are goign to have to refer to each field not by its short name nor its title but by its actual database name, i.e., “field_id_??”, where “??” is its field number.

    <tr><td>Age:</td><td>
    <input type="text" name="field_id_??" value="{field_id_??}">  </td></tr>

    There is more info in the comments for the SAEF documentation

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases