开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜