Note that there are some explanatory texts on larger screens.

plurals
  1. POdocument.reg_page is undefined
    primarykey
    data
    text
    <p>Why are these undefined? They are contained in the form validation js file: </p> <p>var student_name = document.reg_page.student_name.value; var course_id = document.reg_page.course_id.value;</p> <p>When I have this form</p> <pre><code>&lt;div id="container"&gt; &lt;div id="page"&gt; &lt;form name="reg_page" action="thanks.htm" onsubmit = "return form_validation()" method="post"&gt; &lt;table id="form"&gt; &lt;tr&gt; &lt;td colspan="2"&gt;&lt;div id="table_title"&gt;Web Registration Form&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="label"&gt;Student Name:&lt;/td&gt;&lt;td&gt;&lt;input name="student_name" id="s" size="15" value="name"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="label"&gt;Course ID:&lt;/td&gt;&lt;td&gt;&lt;input name="course_id" id="c" size="10" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="label"&gt;Select the programming languages you have studied:&lt;/td&gt; &lt;td&gt; &lt;div&gt;&lt;input type="checkbox" name="js" id="y" value="JS" /&gt;JavaScript&lt;/div&gt; &lt;div&gt;&lt;input type="checkbox" name="py" id="y" value="Python" /&gt;Python&lt;/div&gt; &lt;div&gt;&lt;input type="checkbox" name="asp" id="y" value="ASP.NET" /&gt;ASP.NET&lt;/div&gt; &lt;div&gt;&lt;input type="checkbox" name="php" id="y" value="PHP" /&gt;PHP&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="label"&gt;Expected Year of Graduation:&lt;/td&gt; &lt;td&gt; &lt;div&gt;&lt;input type="radio" name="year" id="y" value="2011" /&gt;2011&lt;/div&gt; &lt;div&gt;&lt;input type="radio" name="year" id="y" value="2012" /&gt;2012&lt;/div&gt; &lt;div&gt;&lt;input type="radio" name="year" id="y" value="2013" /&gt;2013&lt;/div&gt; &lt;div&gt;&lt;input type="radio" name="year" id="y" value="2014" /&gt;2014&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2" id="buttons"&gt; &lt;input type="submit" name="sub" value="Log In" id="s" /&gt; &lt;input type="reset" name="re" value="Clear Form" id="r" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; &lt;/div&gt; </code></pre>
    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.
    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