|
Answer» Does anyone know of a Basic Html Script that does Age Verification?
Example:
[Month DROPDOWN] [Day DropDown] [Year DropDown] [Enter Button]
Code: [Select]<p> <span class="bold"> Month </span> <select style="width: 100px;" name="bMonth"> <option value="01">January</option> <option value="02">February</option> <option value="03">March</option> <option value="04">April</option> <option value="05">May</option> <option value="06">June</option> <option value="07">JULY</option> <option value="08">August</option> <option value="09">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select>
<span class="bold"> Day </span> <select style="width: 100px;" name="bDay"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select>
<span class="bold"> Year </span> <select style="width: 100px;" name="bYear"> <option value="2009">2009</option> <option value="2008">2008</option> <option value="2007">2007</option> <option value="2006">2006</option> <option value="2005">2005</option> etc...... </select> <!-- input type="submit" name="submit" value="CONTINUE »" style="font-size: 1.5em;background-color: #fff;border: 1px solid #fb9b03;color: #fb9b03;" //--> <input type="hidden" value="true" id="verifyAge" name="verifyAge"/> </p>Thanks a bunch, i'll give it a shot, when I have time! Just have to learn how to use the 'Thanked Function' on CH.You're welcome I checked it on my test BOARD and it works...hmm, weird, the submit button won't show up.
Feel free to look at the source code: [link removed by CrewRite]because it's commented out.
are comments. remove the !-- at the start of the INPUT tag and the -- at the end.You'll have to add an extra piece of code to get "Submit" button.
Code: [Select]<form name="input" action="html_form_submit.asp" method="get"> <input type="submit" value="Submit" /> </form> K, the script is sorted out now on InternetExplorer and FireFox, but the script won't restrict age.
This is just an example below of what i'd like it to do:
When the USER selects a Birth Date that's considered below 13 years of age or younger, the script pops up a dialog that says:
Sorry, we only allow teens and adults in our site, would you like to exit to Google.com? [No] [Yes]Anyone, feel like answering?
Link to site is provided above. 3rd post from this post.
I'll try that script above again, but does not appear to go to any webpage.You'll need to use JS.
Have a look around http://www.dynamicdrive.com/ and http://javascriptkit.com/.
GoogleTried those, including Javascript Internet, but, I won't BOTHER anymore, this age verify thing is not easy to implement. Discovered that DaniWeb had them.
|