<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>

CC BY-SA 3.0
2017-03-26T16:08:50.400Z
2017-03-26T16:08:50.400Z
Stephen Lewis
<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>

<entries><guest-entries>
I am unable to successfully submit guest entries
# 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

{{ getCsrfInput() }}




Title


Body

**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.


---

