Why my php part not running? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my php part not running?

I have made a form using Html and print the input using php but its not working https://code.sololearn.com/WMKfgvOr2MVC/?ref=app

8th Apr 2020, 2:26 PM
Souptik Nath
Souptik Nath - avatar
4 Answers
+ 3
SOUPTIK NATH No you can't do here. You can't submit form here because when you submit the form, some action perform which redirect your page to another location so it is not possible here. Better to use JSON or Ajax to submit information.
8th Apr 2020, 2:54 PM
A͢J
A͢J - avatar
+ 3
It is a web code, you should save the code as PHP code instead. FYI Code Playground does not support form submission, so you can't test it in SoloLearn.
8th Apr 2020, 2:44 PM
Ipang
0
SOUPTIK NATH PHP code doesn't work in Html file. Your file extension should be .php but here is .html
8th Apr 2020, 2:47 PM
A͢J
A͢J - avatar
0
AJ #Level 20 End Day So how should I use it in Sololearn?
8th Apr 2020, 2:48 PM
Souptik Nath
Souptik Nath - avatar