{"id":378,"date":"2024-05-21T12:44:52","date_gmt":"2024-05-21T10:44:52","guid":{"rendered":"https:\/\/blog.sutilweb.eu\/?page_id=378"},"modified":"2024-05-21T12:44:52","modified_gmt":"2024-05-21T10:44:52","slug":"25-formulario-de-contacto","status":"publish","type":"page","link":"https:\/\/sutilweb.eu\/index.php\/lenguajes\/html5\/html5-practico\/25-formulario-de-contacto\/","title":{"rendered":"25. Formulario de contacto"},"content":{"rendered":"\n<p>En este cap\u00edtulo vamos a crear un <strong>formulario de contacto completo,<\/strong> como los que nos podemos encontrar en cualquier p\u00e1gina web. Vamos a utilizar un servicio gratuito denominado <strong>Form Submit,<\/strong> el cual nos permite enviar formularios creando una cuenta con ellos. La <strong>URL<\/strong> de <strong>Form Submit<\/strong> es <a href=\"https:\/\/formsubmit.co\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/formsubmit.co\/<\/a><\/p>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n&lt;html lang=\"es\"&gt;\n&nbsp; &lt;head&gt;\n&nbsp; &nbsp; &lt;meta charset=\"UTF-8\" \/&gt;\n&nbsp; &nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/&gt;\n&nbsp; &nbsp; &lt;title&gt;Formulario de Contacto&lt;\/title&gt;\n&nbsp; &lt;\/head&gt;\n\n&nbsp; &lt;body&gt;\n&nbsp; &nbsp; &lt;h1&gt;Formulario de Contacto&lt;\/h1&gt;\n\n&nbsp; &nbsp; &lt;form action=\"https:\/\/formsubmit.co\/info@sutilweb.eu\" method=\"post\"&gt;\n&nbsp; &nbsp; &nbsp; &lt;input\n&nbsp; &nbsp; &nbsp; &nbsp; type=\"text\"\n&nbsp; &nbsp; &nbsp; &nbsp; name=\"nombre\"\n&nbsp; &nbsp; &nbsp; &nbsp; placeholder=\"Escribe tu nombre\"\n&nbsp; &nbsp; &nbsp; &nbsp; pattern=\"^[A-Za-z\u00d1\u00f1\u00c1\u00e1\u00c9\u00e9\u00cd\u00ed\u00d3\u00f3\u00da\u00fa\u00dc\u00fc\\s]+$\"\n&nbsp; &nbsp; &nbsp; &nbsp; title=\"Nombre s\u00f3lo acepta letras y espacioes en blanco\"\n&nbsp; &nbsp; &nbsp; &nbsp; required\n&nbsp; &nbsp; &nbsp; \/&gt;\n&nbsp; &nbsp; &nbsp; &lt;br \/&gt;\n&nbsp; &nbsp; &nbsp; &lt;input\n&nbsp; &nbsp; &nbsp; &nbsp; type=\"email\"\n&nbsp; &nbsp; &nbsp; &nbsp; name=\"correo\"\n&nbsp; &nbsp; &nbsp; &nbsp; placeholder=\"Escribe tu correo\"\n&nbsp; &nbsp; &nbsp; &nbsp; pattern=\"^(\\w+[\/.\/-]?){1,}@[a-z]+[\/.]\\w{2,}$\"\n&nbsp; &nbsp; &nbsp; &nbsp; title=\"Formato de correo inv\u00e1lido\"\n&nbsp; &nbsp; &nbsp; &nbsp; required\n&nbsp; &nbsp; &nbsp; \/&gt;\n&nbsp; &nbsp; &nbsp; &lt;br \/&gt;\n&nbsp; &nbsp; &nbsp; &lt;textarea name=\"comentarios\" cols=\"30\" rows=\"10\" required&gt;&lt;\/textarea&gt;\n&nbsp; &nbsp; &nbsp; &lt;br \/&gt;\n&nbsp; &nbsp; &nbsp; &lt;input type=\"submit\" value=\"Enviar\" \/&gt;\n&nbsp; &nbsp; &lt;\/form&gt;\n&nbsp; &lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>En este cap\u00edtulo vamos a crear un formulario de contacto completo, como los que nos podemos encontrar en cualquier p\u00e1gina [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":89,"menu_order":24,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-378","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Sutil Web","author_link":"https:\/\/sutilweb.eu\/index.php\/author\/sutilweb\/"},"uagb_comment_info":0,"uagb_excerpt":"En este cap\u00edtulo vamos a crear un formulario de contacto completo, como los que nos podemos encontrar en cualquier p\u00e1gina [&hellip;]","_links":{"self":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":2,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/378\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/378\/revisions\/380"}],"up":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/89"}],"wp:attachment":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/media?parent=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}