Answers.Body: <p>As per <a href="https://github.com/pixelandtonic/GuestEntries/blob/master/README.md" rel="nofollow noreferrer">the documentation</a>, you need to include a hidden <code>sectionId</code> field. This specifies the section to which the entry will be submitted.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-26T16:08:50.400Z
Answers.LastActivityDate: 2017-03-26T16:08:50.400Z
Answers.UserDisplayName: Stephen Lewis
Body: <p>I am trying to submit a guest entry it keeps returning a fatal error. This is my code</p>
  
  <pre><code>&lt;form method="post" action="" accept-charset="UTF-8"&gt;
  {{ getCsrfInput() }}
  &lt;input type="hidden" name="action" value="guestEntries/saveEntry"&gt;
  &lt;input type="hidden" name="redirect" value="success"&gt;
  &lt;input type="hidden" name="profile" value="3"&gt;
  
  &lt;label for="title"&gt;Title&lt;/label&gt;
  &lt;input id="title" type="text" name="title"&gt;
  
  &lt;label for="body"&gt;Body&lt;/label&gt;
  &lt;textarea id="body" name="fields[body]"&gt;&lt;/textarea&gt;
  
  &lt;input type="submit" value="Publish"&gt;
  &lt;/form&gt;
  </code></pre>
  
Tags: <entries><guest-entries>
Title: I am unable to successfully submit guest entries
ThreadText: # I am unable to successfully submit guest entries
  
  (Asked by: username_0 on 2017-03-25)
  
  I am trying to submit a guest entry it keeps returning a fatal error. This is my code
  
  ```
  <form method="post" action="" accept-charset="UTF-8">
  {{ getCsrfInput() }}
  <input type="hidden" name="action" value="guestEntries/saveEntry">
  <input type="hidden" name="redirect" value="success">
  <input type="hidden" name="profile" value="3">
  
  <label for="title">Title</label>
  <input id="title" type="text" name="title">
  
  <label for="body">Body</label>
  <textarea id="body" name="fields[body]"></textarea>
  
  <input type="submit" value="Publish">
  </form>
  
  ```
  
  **Tags:** entries, guest-entries
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-26. Score: 1
  
  As per [the documentation](https://github.com/pixelandtonic/GuestEntries/blob/master/README.md), you need to include a hidden `sectionId` field. This specifies the section to which the entry will be submitted.
  
  
  ---
  
  