lundi 23 novembre 2020

I want to print the data the user has submitted in html form

I want to print the user's submitted data after he click on the "Submit Your Entries" button

and display a massage for him says: Thanks " Name" for your comments.. Your e-mail: example@yahoo.com Things you liked on my site: site design and Contents. for example

here's my code:

<html>
  <head>
    <title>Feedback form</title>
<form method = "post" action = "">
    <title>Feedback form </title>

  </head>
  <body>

  <h1>Feedack Form</h1>
<p>Please fill out this form to help me improve My site.</p>

<p><lable>Name:
  <input name="name" type="text" size="20"/> <br>

  E-mail Addres:
    <input name="email" type="email" size="20"/>
  </lable>

  <p>
    <strong>Things you like on my site:</strong> <br>

    <label>Site design
<input name = "thingsliked" type = "checkbox" value = "Design" /></label>
<br>
<label>Contents
<input name = "thingsliked" type = "checkbox" value = "Contents" /></label>
<br>
 <label>Ease of use
<input name = "thingsliked" type = "checkbox" value = "Ease" /></label>
<br>


<input type = "submit"  value = "Submit Your Entries"/>
 <input type = "reset" value = "Clear Your Entries" />
  </body>
</html>



Aucun commentaire:

Enregistrer un commentaire