How do I write the program so that if an user presses ok in the confirm box,the values are automatically saved? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I write the program so that if an user presses ok in the confirm box,the values are automatically saved?

https://code.sololearn.com/WQWnVB7by049/?ref=app

18th Oct 2017, 1:57 PM
Adrija Ray Chaudhuri
Adrija Ray Chaudhuri - avatar
4 Answers
+ 1
Y ou need a database to save value.this is possible through server side language like php .but through JavaScript you can display the value on the screen
19th Oct 2017, 2:56 AM
MONSIEUR GNETO
MONSIEUR GNETO - avatar
0
My program is not correct.Neither is its syntax.
18th Oct 2017, 1:58 PM
Adrija Ray Chaudhuri
Adrija Ray Chaudhuri - avatar
0
Thank you so much@Monsieur. Will the program ask the user to re-enter the numbers if he presses cancel in the confirm box?Can this be also done through php?
19th Oct 2017, 3:51 AM
Adrija Ray Chaudhuri
Adrija Ray Chaudhuri - avatar
0
Yes of course php can do this kind of work..But it preferable to use JavaScript instead because server side languages are resource consumer
19th Oct 2017, 6:41 AM
MONSIEUR GNETO
MONSIEUR GNETO - avatar