# Not working the \<form action not working

**URL:** <https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [May 23, 2020, 11:56pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297 "2020-05-23T23:56:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![belfastal](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/belfastal/32/150285_2.png) [@belfastal](https://forum.freecodecamp.org/u/belfastal)\
**Post date:** [May 23, 2020, 11:56pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/1 "2020-05-23T23:56:52Z")

</div>

**Tell us what’s happening:**  
The form  
`<form action="submit-cat-photo"></form>`

It is not working

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [May 23, 2020, 11:57pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/2 "2020-05-23T23:57:40Z")

</div>

We are going to actually need to see your code and the link to the challenge to be able to help.

---

<div class="post-metadata">

**Author:** ![belfastal](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/belfastal/32/150285_2.png) [@belfastal](https://forum.freecodecamp.org/u/belfastal)\
**Post date:** [May 23, 2020, 11:58pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/3 "2020-05-23T23:58:39Z")

</div>

```auto
<h2>CatPhotoApp</h2>

<main>

  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

  <p>Things cats love:</p>

  <ul>

    <li>cat nip</li>

    <li>laser pointers</li>

    <li>lasagna</li>

  </ul>

  <p>Top 3 things cats hate:</p>

  <ol>

    <li>flea treatment</li>

    <li>thunder</li>

    <li>other cats</li>

  </ol>

  <form action="/submit-cat-photo"></form>

  <input type="text" placeholder="cat photo URL">

</main>

```

---

<div class="post-metadata">

**Author:** ![belfastal](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/belfastal/32/150285_2.png) [@belfastal](https://forum.freecodecamp.org/u/belfastal)\
**Post date:** [May 23, 2020, 11:59pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/4 "2020-05-23T23:59:51Z")

</div>

Your text input element should be nested within a `form` element.

Passed

Your `form` should have an `action` attribute which is set to `/submit-cat-photo`

Your `form` element should have well-formed open and close tags.

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [May 24, 2020, 12:00am UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/5 "2020-05-24T00:00:58Z")

</div>

Please use the `</>` button to wrap your code in ````` backticks so that we can see it.

---

<div class="post-metadata">

**Author:** ![belfastal](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/belfastal/32/150285_2.png) [@belfastal](https://forum.freecodecamp.org/u/belfastal)\
**Post date:** [May 24, 2020, 12:06am UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/6 "2020-05-24T00:06:57Z")

</div>

Your `form` element should have well-formed open and close tags.

I did this and closed it. This is the code at the start and I added this, but no go.

```auto
<input type="text" placeholder="cat photo URL"> /*(start)*/

<form action="/submit-cat-photo"></form> /* (added code)*/
<input type="text" placeholder="cat photo URL"
</main>

```

---

<div class="post-metadata">

**Author:** ![belfastal](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/belfastal/32/150285_2.png) [@belfastal](https://forum.freecodecamp.org/u/belfastal)\
**Post date:** [May 24, 2020, 12:15am UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/7 "2020-05-24T00:15:14Z")

</div>

// running tests Your text input element should be nested within a

```auto
form

```

element. // tests completed

---

<div class="post-metadata">

**Author:** ![belfastal](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/belfastal/32/150285_2.png) [@belfastal](https://forum.freecodecamp.org/u/belfastal)\
**Post date:** [May 24, 2020, 12:21am UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/8 "2020-05-24T00:21:26Z")

</div>

Okay I will do.  
Thank you very much, however it is still not working. I have reset it many times. This also happened on ordered list. I knew the code was correct but still did not work. I tried it again the next day, today and it worked brilliantly.

Now, I am moving into the next lesson for button.  
the code is below. It is say, Your form should have a button inside it.

```auto
 <h2>CatPhotoApp</h2>
<main> 
 <p>Click here to view more <a href="#">cat photos</a>.</p> 

 <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a> 
 button type="submit">submit</button> 
  p>Things cats love:</p> 

  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <p>Top 3 things cats hate:</p>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
  <form action="/submit-cat-photo">
    <input type="text" placeholder="cat photo URL">
  </form>
</main>

```

---

<div class="post-metadata">

**Author:** ![Roma](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/roma/32/112899_2.png) [@Roma](https://forum.freecodecamp.org/u/Roma)\
**Post date:** [May 24, 2020, 1:50pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/9 "2020-05-24T13:50:32Z")

</div>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](http://www.freecodecamp.com/forum/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks are not single quotes.

![markdown_Forums](https://sea3.discourse-cdn.com/freecodecamp/uploads/default/original/3X/4/b/4b9a26f0c243380dd84935f4e29b92e3ecee8d05.gif)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [May 24, 2020, 5:54pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/10 "2020-05-24T17:54:41Z")

</div>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](http://www.freecodecamp.com/forum/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks are not single quotes.

![markdown_Forums](https://sea3.discourse-cdn.com/freecodecamp/uploads/default/original/3X/4/b/4b9a26f0c243380dd84935f4e29b92e3ecee8d05.gif)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [May 31, 2021, 3:47pm UTC](https://forum.freecodecamp.org/t/not-working-the-form-action-not-working/393297/11 "2021-05-31T15:47:32Z")

</div>


