How can I pre-populate html form input fields from url parameters?

前端 未结 3 432
再見小時候
再見小時候 2020-12-01 03:53

I have a vanilla html page which has a form in it. A requirement has come in to be able to pre-populate the form via the url. Something like:

http://some.s         


        
3条回答
  •  春和景丽
    2020-12-01 04:25

    Are you using PHP? If so, that makes things much easier. Assuming your link as above, you can use:

    
    ----------
    
    
    

    That should pre-populate for you.

提交回复
热议问题