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.

Channel:form won't save data

April 04, 2014 6:10am

Subscribe [1]
  • #1 / Apr 04, 2014 6:10am

    AlteredState

    57 posts

    My channel:form won’t save data to the channel specified.

    I’ve checked the required fields per the channel, checked the source code to see if anything’s missing there, tried it with and without jquery, checked the channel preferences, reduced the code to the basics required. Still no joy.

    Channel form code:

    {exp:channel:form channel="places" return="admin/edit_place/ENTRY_ID" }
    
     <table>
     <tr><td colspan="2">
        <label class="reqd">Name</label><br>
        <input type="text" name="title" id="title" value="" size="35" maxlength="100" />
       
     </td>
     </tr>
    
     <tr><td colspan="2">
     <label for="capacity" class="reqd">Capacity</label><br>
          <input type="text" name="capacity" id="capacity" value="" maxlength="7" size="15">
     </td>
     </tr>
    
     <tr><td colspan="2">
     <label for="address" class="reqd">Address</label><br>
          <textarea name="address" id="address" rows="10" cols="25"></textarea>
     
     <label for="postcode" class="reqd">Postcode</label><br>
          <input type="text" name="postcode" id="postcode" value="" maxlength="30" size="25">
     
    
     <label for="city" class="read">City</label><br>
          <input type="text" name="city" id="city" value="" maxlength="30" size="25">
     
    
     <label for="tel" class="reqd">Telephone</label><br>
          <input type="text" name="tel" id="tel" value="" maxlength="30" size="25">
     
    
     <label for="main_email" class="reqd">Email</label><br>
          <input type="text" name="main_email" id="main_email" value="" maxlength="100" size="35">
     
    
    <label for="contact_email" class="reqd">Contact Email</label><br>
          <input type="text" name="contact_email" id="contact_email" value="" maxlength="100" size="35">
     
      </td></tr>
      </table>
    
          <input type="submit" name="submit" value="Add to the database" class="submit">
     
    {/exp:channel:form}

    Any ideas?
    How do I debug this?

    Using EE v2.7.2

  • #2 / Apr 04, 2014 1:15pm

    AlteredState

    57 posts

    Just figured out why - index.php missing from the Admin > General configuration > Name of your site’s index page text box.

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

ExpressionEngine News!

#eecms, #events, #releases