I want code for submit button in form (html, css) ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I want code for submit button in form (html, css) ?

Specially i want code for submit button in form, after submit, want to get text msg and user email into admin's email id.

26th Apr 2018, 6:50 PM
Mr. Jay Koranga
Mr.  Jay Koranga - avatar
7 Answers
+ 19
<form onsubmit="(function(){/*code*/})()"> <!-- So what exactly do you want?? -->
27th Apr 2018, 1:01 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 18
Can we see your form's code??
26th Apr 2018, 7:10 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 15
You must sanitise the input data through the onsubmit event, the submit button does the rest automatically. Then you need a server to send the data to and analyse...
27th Apr 2018, 4:57 PM
Valen.H. ~
Valen.H. ~ - avatar
27th Apr 2018, 3:32 AM
Mr. Jay Koranga
Mr.  Jay Koranga - avatar
+ 1
Wouldn't that be something from PHP? Like one of the other comments mentioned, you would need server to send data to and analyze. If not it gets lost upon submitting to the site in theory. Especially if you didn't use localsource. But then again it still goes to their computer for storing the information. You would need to have a java script that registered the information into a new form that sent you the email/text based on your admin id. I don't know exactly why you would want someone's personal information sent to you privately though.. The PHP is the databasing needed the java is for the script to send the information to yourself.. If anything you could remove the java script and just go into your MySQL or wherever you have the database files and manually locate the information?? Still think that's could potentially be a breach of confidentiality.. Also this is all theory, because I only started this website again, just finished HTML5 and I'm starting on CSS, but .... I kinda think what you're asking is further than HTML5/CSS only as the tags suggest. I apologize if this information doesn't help, but that would be what I understood from the HTML fundamentals in theory...
28th Apr 2018, 6:05 AM
Brandon Oster
Brandon Oster - avatar
0
which coding required for submit button , i mean that if someone fill form and click on submit, how i will receive the information. because i prepared only form.
27th Apr 2018, 2:39 PM
Mr. Jay Koranga
Mr.  Jay Koranga - avatar
0
Thanks for giving me precious time.
27th Apr 2018, 5:12 PM
Mr. Jay Koranga
Mr.  Jay Koranga - avatar