Submit Form Link | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Submit Form Link

I know I’m able to create a form with fields that can be filled out along with a submit button, but how do you actually get that submit button to work? Like once the user click the button, I want them to be sent to another new webpage. How to I do this?

20th Jan 2018, 2:59 AM
Mordred
Mordred - avatar
1 Answer
+ 9
If you have learned PHP then you can use it to process your form data, if you're using PHP, behind the scenes, the form data are sent as pairs of names and values, e.g. if you have a text input with name attribute "username" and it's value "tom", then in PHP's perspective (upon receiving the form data) it is username="tom", that's pretty much how it works. Unfortunately, here in SL, form data submission isn't available (read:supported), so if you plan to use PHP, I guess you better grab one of those *AMPP packages, and have it installed on your computer. I recall a friend here once mentioned something similar was also available for Android device, but I forgot what the app name was : ) Hth, cmiiw
20th Jan 2018, 5:12 AM
Ipang