+ 2

Does PHP playground supports form's submit?

Hello! I'm trying to make simple function on php which will get data from input and store it to variable and output it. But on submiting page reloads and everithing disapears. How should I make form to store data from input?

5th Sep 2017, 12:45 PM
Swante Arrhenius
Swante Arrhenius - avatar
5 ответов
+ 2
code playground don't have a PHP server reserved for form support.If you have computer I'd recommend installing XAMPP
5th Sep 2017, 5:32 PM
Joel Roy
Joel Roy - avatar
+ 2
nope PHP is useless here
5th Sep 2017, 5:56 PM
Styxincewa
Styxincewa - avatar
+ 2
run it with XAMPP or Apache or nginx server
5th Sep 2017, 5:57 PM
Styxincewa
Styxincewa - avatar
+ 2
if you have Linux just open a terminal and type service apache2 start and then add files to /var/www/html directory
5th Sep 2017, 5:57 PM
Styxincewa
Styxincewa - avatar
+ 1
thank you
5th Sep 2017, 12:58 PM
Swante Arrhenius
Swante Arrhenius - avatar