+ 1

what js should i use to save a html form offline

9th Jan 2017, 1:44 PM
aakash
aakash - avatar
7 ответов
+ 8
<form action="https://www.google.com/search" method="get"> <input type="text" name="q" value="test"> <input type="hidden" name="spam" value="spam"> </form> On Submit this form becomes : https://www.google.com/search?q=test&spam=spam
9th Jan 2017, 2:24 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 6
"Save the input offline on my pc"? You might as well go download XAMPP, configure your own web server, study some PHP and input data will be in your database. What Lentin wants you to do is, you basically do <form method=GET> so the data gets URL encoded. The regexp may be complicated but this is probably not the way you want.
9th Jan 2017, 2:21 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 5
when form gets submitted its contents get URLEncoded, just do that manually with RegEx and export URL…
9th Jan 2017, 2:19 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
i want to make an offline html form that can save the input offline on my pc
9th Jan 2017, 1:54 PM
aakash
aakash - avatar
+ 1
thanks guys for your help
9th Jan 2017, 3:11 PM
aakash
aakash - avatar
0
question unclear....more plzz 😉
9th Jan 2017, 1:51 PM
NabiL
NabiL - avatar
0
Why don't you use any server side script like php, asp or jsp, that's easier or use file handling of Javascript
9th Jan 2017, 2:00 PM
Divesh Agarwal
Divesh Agarwal - avatar