Note that there are some explanatory texts on larger screens.

plurals
  1. PONotice: Undefined index: While using <select>
    primarykey
    data
    text
    <p>Ok so here's the code</p> <p>PHP:</p> <pre><code> $rgen = mysql_real_escape_string(strip_tags($_POST['gender'])); $dobm = mysql_real_escape_string(strip_tags($_POST['dobm'])); $dobd = mysql_real_escape_string(strip_tags($_POST['dobd'])); $doby = mysql_real_escape_string(strip_tags($_POST['doby'])); $dab = $doby.$dobm.$dobd; $tos = mysql_real_escape_string(strip_tags($_POST['TOS'])); </code></pre> <p>HTML:</p> <pre><code> &lt;select id=ftxti name=gender style="width:130px; padding: 10px 15px; height: 52px;" &gt; &lt;option disabled selected &gt;I'am&lt;/option&gt; &lt;option value=0 &gt;Male&lt;/option&gt; &lt;option value=1 &gt;Female&lt;/option&gt; &lt;/select&gt; &lt;td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class=dob &gt; &lt;select name="dobm" id=ftxti style="width:103px;" &gt; &lt;option disabled selected &gt;Month&lt;/option&gt; &lt;?php for ($i = 1; $i &lt;= 12; $i++) : ?&gt; &lt;option value="&lt;?php echo ($i &lt; 10) ? '0'.$i : $i; ?&gt;"&gt;&lt;?php echo $i; ?&gt;&lt;/option&gt; &lt;?php endfor; ?&gt; &lt;/select&gt; &lt;select name="dobd" id=ftxti style="width:95px;" &gt; &lt;option disabled selected &gt;Day&lt;/option&gt; &lt;?php for ($i = 1; $i &lt;= 31; $i++) : ?&gt; &lt;option value="&lt;?php echo ($i &lt; 10) ? '0'.$i : $i; ?&gt;"&gt;&lt;?php echo $i; ?&gt;&lt;/option&gt; &lt;?php endfor; ?&gt; &lt;/select&gt; &lt;select name="doby" id=year style="width:95px;" &gt; &lt;option disabled selected &gt;Year&lt;/option&gt; &lt;?php for ($i = 1980; $i &lt; date('Y'); $i++) : ?&gt; &lt;option value="&lt;?php echo $i; ?&gt;"&gt;&lt;?php echo $i; ?&gt;&lt;/option&gt; &lt;?php endfor; ?&gt; &lt;/select&gt; &lt;label &gt; &lt;div id=tosag &gt; &lt;input type=checkbox name=TOS value=1 /&gt; &lt;font style="font-size: 11px;" &gt; I agree to &lt;a href=# style="color: rgb(50, 92, 129);"&gt;TOS&lt;/a&gt; &lt;/font&gt; &lt;/div&gt; &lt;/label&gt; </code></pre> <p>And The Errors:</p> <pre><code>Notice: Undefined index: gender in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 28 Notice: Undefined index: dobm in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 30 Notice: Undefined index: dobd in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 31 Notice: Undefined index: doby in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 32 Notice: Undefined index: TOS in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 36 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 101 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 109 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 118 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\etc\e.conf\sys.proc\proc.reg\use.register.php on line 126 </code></pre> <p>Any help would be appreciated. Problem is i seem to have defined the index but i must be missing a rule here, I'm kind of rusty at PHP so please be gentle with me, And I'm also new here so if i do anything wrong I'm sorry...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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