Alguien sabe como muestro los datos de un formulario en otra página con Javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Alguien sabe como muestro los datos de un formulario en otra página con Javascript

JavaScript

30th Apr 2019, 2:58 AM
Jose Miguel Moreno Olarte
Jose Miguel Moreno Olarte - avatar
2 Answers
0
Send your data in base64 for url and read in new page after decode . // It is client side, solution in server side write more details!
13th May 2019, 12:51 AM
Jônatas Araripe
Jônatas Araripe - avatar
0
In firt page send URL pure "Serialize" location.search = '?'+$('form').serialize(); // JQuery // Exemple of URL yourPage.html?nome=mart&age=32 Second page use: output = location.search.slice(1).split('&').map(v=>v.split('=')); // Output [ ["nome","mart"], ["age","32"] ] // Font https://pt.stackoverflow.com/questions/287393/serialize-com-javascript-puro
13th May 2019, 1:31 AM
Jônatas Araripe
Jônatas Araripe - avatar