Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

trying to add an age verification popup or starter window for my go daddy website, html is being used..pleasehelp

i am using a go daddy to create a website . i want to put an 18 or over age verification when signing up on the website and or when purchases are made, the website is for lottery pool purchasing, the code is html compliant. also, i did not know if it was possible to have users sign onto their account through my website or if that is something too intricate for go daddy site. i am new but wanting to learn,please help.

2 Answers

Hi Steve,

While creating and sending a form can be done with html alone, validating an input field would require some JavaScript. JavaScript runs in the client's browser, so your domain and server shouldn't matter.

Hi Steve,

The over 18 verification can probably be accomplished with JavaScript, HTML, and CSS. You can write some simple Javascript code to check if the user is over 18, then they are taken to the website. If else, then they are taken to a page that states they have to be over 18 to enter. You can use two HTML buttons -- one is over 18 the other is under 18. You can also just use plain HTML and CSS, too.

If you want to have multiple user accounts, then you're probably going need to have a database setup, with the appropriate tables, and use a back-end language like Ruby, Python, PHP, JavaScript or Java -- there are other languages that can be used but those are examples. There is a Treehouse Ruby on Rails track which covers user authentication, database basics, and it will get you started down this path -- I highly recommend it. But, it's up to you.

I haven't used godaddy before, but the type of website that you're able to build may depend on the type of plan you purchased.

Hope this helps!