Note that there are some explanatory texts on larger screens.

plurals
  1. PO<select> and <option> problems in this <form>
    text
    copied!<p>i thought i was doing ok:</p> <pre><code> &lt;form class="admin_form" id="blog" name="blog" method="post" action="/web/admin.php" &gt; &lt;h2&gt;form_blog_section&lt;/h2&gt; &lt;select name="id_familia" id="id_familia" type="option" value="3"&gt; &lt;option value ="3"&gt;Bicicletas&lt;/option&gt; &lt;option value ="5"&gt;Bike Fiting&lt;/option&gt; &lt;option value ="6"&gt;Rutas cicilstas&lt;/option&gt; &lt;option value ="7"&gt;Tienda&lt;/option&gt; &lt;/select&gt; &lt;h2&gt;form_blog_language&lt;/h2&gt; &lt;select name="id_lan" id="id_lan" type="option" value="2"&gt; &lt;option value="2"&gt;&lt;img src="/img/lan/2.png" /&gt;English&lt;/option&gt; &lt;option value="1"&gt;&lt;img src="/img/lan/1.png" /&gt;Spanish&lt;/option&gt; &lt;/select&gt; ///// **from here it's not important but i'll still leave it in case** ///////////// &lt;h2&gt;form_blog_title&lt;/h2&gt;&lt;input name="q" id="q" class="q" type="text" value=" "&gt;&lt;/input&gt; &lt;h2&gt;form_blog_text&lt;/h2&gt; &lt;textarea name="texto" id="texto" style="max-width:900px;min-width:90%;width:900px;height:400px;padding:2%;" cols="40" &gt;Delete this text and enter here the content as will be thisplayed&lt;br&gt;Please note you can (and should) add styles to your text, images, etc&lt;/br&gt;&lt;/textarea&gt; &lt;h2&gt;tags&lt;/h2&gt; &lt;input name="tags" id="tags" /&gt; &lt;a href="" class="boton"&gt;preview&lt;/a&gt; &lt;input name="new_blog" id="new_blog" type="submit" value="form_post_blog_button" /&gt; &lt;/form&gt; </code></pre> <p>The problem is when i that i'm getting unexpected values when i recive the input values using PHP $_post:</p> <p><code>echo $_POST['id_familia']</code> => <code>0</code> <code>echo $_POST['id_lan']</code> => 5</p> <p>And there are not such with this possible values in the form :? And both are 'impossible', </p> <p>what i'm doing wrong?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload