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.

Problem entering data into weblog

November 23, 2010 4:53pm

Subscribe [2]
  • #1 / Nov 23, 2010 4:53pm

    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 23, 2010 7:48pm

    lebisol

    2234 posts

    Name is being stored as title, you have to wrap them with custom_fields tag.

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

ExpressionEngine News!

#eecms, #events, #releases