php - On clicking a button on a web page, can a dynamic link be generated? can we navigate webpage to the dynamically generated link -


i new php , javascript programming have string can "abc" or "aac" or "aaa" etc based on inputs given user. after user clicks button(say submit) want generate dynamic link www.domain.com/abc or www.domain.com/aac based on string , navigate user generated link. possible? thank you

you can define function , set form action. taking user input each in function use header('location:your_site_url/'.$_get['user_input']); die; redirecting user desired url.

hope helps.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -