Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your HTML is riddled with invalid markup. I've cleaned it up a little bit (it still has issues), and added an onsubmit to the form to call your system function. I modified your system function a bit too. You weren't referring to your variables with the right names all the time. (points instead of point, etc.). Next time, do some typo checking <em>before</em> you post a question or code. Generally one or two typos is accepted as just being overlooked, but yours had a lot. Just a few minutes of looking it over on your part would have gotten you tons closer to begin with. </p> <p><strong>HTML</strong></p> <pre><code> &lt;form name="world" method="post" onsubmit="system(); return false;"&gt; &lt;table border=3&gt; &lt;th&gt;&lt;font size='16'&gt;defined&lt;/font&gt;&lt;/th&gt; &lt;th&gt;&lt;font size='16'&gt;user input&lt;/font&gt;&lt;/th&gt; &lt;tr&gt; &lt;td&gt;How many points have you earned?&lt;/td&gt; &lt;td&gt; &lt;input type="text" name="txt_points" size='50' id='point'&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;How many tournaments have you played in?&lt;/td&gt; &lt;td&gt; &lt;input type="text" size='50' id='tourn' name='txt_tourn'&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;highest level&lt;/td&gt; &lt;td&gt; &lt;input type="text" size='50' id='level' name ='txt_level'&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Have you won atleast 1 tournement&lt;/td&gt; &lt;td &gt; &lt;input type="checkbox"id='check' name=txt_check&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;your world of wizards ranking is &lt;/td&gt; &lt;td&gt; &lt;input type="submit"value ="submit"&gt; &lt;br&gt; &lt;input type ="text box" name ="txt_results"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; </code></pre> <p><strong>JAVASCRIPT</strong></p> <pre><code>function system(){ var point=document.world.txt_points.value; var tourn=document.world.txt_tourn.value; var level=document.world.txt_level.value; var check=document.world.txt_check.value; var results=document.world.txt_results.value if ((point&gt;=100000)&amp;&amp;(level&gt;10)&amp;&amp;(tourn&gt;25)) { alert("pro status") } if((point&gt;=100000)&amp;&amp;(level&gt;10)) { alert("Novice") } if (point&gt;=100000) { alert("beginner") } if (point&lt;100000) { alert("noob") } if (check==true) { alert("pro") } } </code></pre>
    singulars
    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.
    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