I'm new to html, css, and now need to use some javascript for a form (?).
I have a riddle on my page and want the user to only be able to get to the next page upon submitting the correct solution - "weeping". I have a simple submit text box form.
This is my code for the html page so far (simplified; and not sure what 'rule/constraints' to put in the "sript" bit)
Thanks a lot for your help!
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="design.css">
</head>
<body>
<p>
Now that you've read the riddle, type in your solution below to reveal the next page.
</p>
<form action="riddlesolutionnextpage.htm" onsubmit="return validate_form ( );">
<p> Your answer:   <input type="text">
<input type="submit"></p>
</form>
<script>
</script>
</body>
</html>