I think I know the problem now...
You have several errors in your form. When I made some changes to your code I made it stick in the database. This is what I ended up with:
I have changed the following:
You have several errors in your form. When I made some changes to your code I made it stick in the database. This is what I ended up with:
Code:
<dl class="field row" style=" margin-top: 5%; ">
<dt class="text"><input type="text" placeholder="Name" required="" id="username" name="username" /></dt>
<dd class="msg"><span class="caret"></span>You filled this out wrong.</dd>
</dl>
<dl class="field row">
<dt class="text"><input type="text" name="mailid" id="mailid" placeholder="Email - preferably IIT student/ alumni id" required="" /></dt>
<dd class="msg"><span class="caret"></span>You filled this out wrong.</dd>
</dl>
<ul class="field row" >
<li class="picker">
<select name="campus" id="campus">
<option value="ABC" selected="selected">ABC</option>
<option value="XYZ">XYZ</option>
</select>
</li>
</ul>
<div class="row centered" style="margin-bottom: 55%">
<p class="btn submit"><button type="submit" value="Submit" >Submit</button></p>
</div>
I have changed the following:
- First of all, you have left out the closing "</select>" after your select list. This broke the code entirely.
- Secondly, you didn't specify any option values to your select list.
- Third, I had to give your text fields a "name" attribute to make them work.