开发者

Generate and open a link from input data

开发者 https://www.devze.com 2023-02-16 07:24 出处:网络
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?

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

精彩评论

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

关注公众号