Hey guys i need to make a form on hmtl that will be a multiple choice quiz: It is about 15 questions long and is multiple choice. I already have made a box for the name i just need a submit button that will either save it to a file or email it. Does anyone know how this can be done fast and easily? The form can use a PHP mail() function but needs to be straight html
So you have one input field for the person to input their name, and that's it? If you want to have a submit button, the code is pretty simple: <input type="submit" value="Submit Form" /> Code (markup): Now you said you want to save the value for their name somewhere? Well you don't technically need to save it anywhere, unless you are going to need the data for future reference. In this case, I would suggest putting the data into a MySQL database. Otherwise, you can just get the data after the PHP page is submitted through either the GET or POST variables. For example, here is how your form could look: <form action="quiz.php" method="post" id="quizForm"> <label for="name">Enter Your Name:</label> <input type="text" name="name" id="name" /> <input type="submit" value="Submit Form" /> </form> Code (markup): If you had that, then whenever the user clicked the submit button, the page that takes the information passed is quiz.php. If somebody submitted the form, you could use the form variable $_POST['name'] to get the value of whatever they put into the name field. This really goes into PHP and not so much HTML though, so I probably read your question horribly wrong. Sorry for the long response, but I hope it helps somehow.
thank you yes it has been some help but i dont really know PHP or MySQL so im still looking for alternate solutions