Generate and open a link from input data
I've a form where user can optionally enter their nickname, firstname and location. How can I generate a link from that data by submission and open it afterwards?
The link should loo开发者_运维知识库k like this:
http://example.com/generated.php?nickname=hello&firstname=world&location=earth
Don't know if I get you right, but, using jQuery, you can do:
$('.my-form').serialize();
it will get the inputs and generate a get-like string.
精彩评论