简体   繁体   中英

Why this form in html is not submitting?

I don't understand why, but when I open the html file where the form is I fill all the gaps and then click on the submit button, but anything happens.

<form method="post" action="PHP FILE">
<label>NAME*</label>
<input type="text" name="name" placeholder="YOUR NAME">
<label>EMAIL*</label>
<input type="text" name="email" placeholder="YOUR EMAIL”>
<label>CATEGORY*</label>
<select name="category">
<option value="1">FIRST</option>
<option value="2">SECOND</option>
</select>
<label>PHONE*</label>
<input type="text" name="phone" placeholder="YOUR PHONE">
<label>WEBSITE</label>
<input type="text" name="web" placeholder="YOUR WEBSITE”>
<label>MESSAGE</label>
<textarea name="message" placeholder="YOUR MESSAGE"></textarea>
<button type="submit">SEND</button>
</form>

The double quotes of placeholder is differing Make sure they are same

<input type="text" name="email" placeholder="YOUR EMAIL”>

<input type="text" name="web" placeholder="YOUR WEBSITE”>

Try this

<input type="submit" value="SEND"/>

The action of the form must be some file Like abc.php or abc.html

I hope this must work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM