Home > Web Front-end > HTML Tutorial > Can form submission automatically add fixed content? ? ? _html/css_WEB-ITnose

Can form submission automatically add fixed content? ? ? _html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 12:21:25
Original
1360 people have browsed it

For example:

A form with an input box for entering a QQ number, but when submitting, @qq.com is automatically added after the entered QQ number to become an email address Submit in format. Is there any way? ?


Reply to discussion (solution)

Yes,

Yes,


email
<script> <br> function check(emel){ <br> var qq = emel.qq; //Here is located the <input name="qq" /> tag <br> qq.value = "@qq.com"; <br> alert(qq.value); //This is a test, you can delete this sentence after success <br> } <br> </script>



Please enter your QQ number:


For example:

A form with an input box for entering a QQ number. But when submitting, @qq.com is automatically added after the entered QQ number to become an email format for submission. Is there any way? ?

Isn’t this a false proposition?
How to confirm that the number entered by others must be the QQ mailbox?

If you can confirm that what others enter must be the qq email address, then whether you save the number to the database or send the email directly, can you just add @qq.com yourself? ?

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template