<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>liliel_OvO</author_name>
  <author_url>https://blog.hatena.ne.jp/liliel_OvO/</author_url>
  <blog_title>ダークエリア</blog_title>
  <blog_url>https://liliel.hateblo.jp/</blog_url>
  <categories>
    <anon>Javascript</anon>
    <anon>Laravel</anon>
    <anon>お仕事のメモ</anon>
    <anon>web</anon>
    <anon>バグ</anon>
  </categories>
  <description>最近ブログぜんぜんでしたけど、生きてます。私です。 今回ぶち当たった実装の問題について書きます。 ■問題 フォーム送信後、遷移先からブラウザバックしたとき、 フォームに前に入力した内容が保持されていない。 ■原因 送信ボタンがtype=submitではなかったから。 submitがjsでされていた（form.submit();） ■解決方法 送信時は、input type=&quot;submit&quot; でやること。 送信先や送信方法が異なるなら、input type=&quot;submit&quot; のタグに formaction=&quot;送信先URL&quot; や、formmethod=&quot;GET/POST&quot; を使うこと。 例：&lt;in…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fliliel.hateblo.jp%2Fentry%2F2020%2F10%2F27%2F165657&quot; title=&quot;フォーム入力・送信した内容が、ブラウザバックすると消える問題 - ダークエリア&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-27 16:56:57</published>
  <title>フォーム入力・送信した内容が、ブラウザバックすると消える問題</title>
  <type>rich</type>
  <url>https://liliel.hateblo.jp/entry/2020/10/27/165657</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
