+ 4

any idea how to use the form element in the php code in sololearn?

recently i tried to write a simple code php in sololearn, i use the form element, but i don't know the value of the action attribute https://code.sololearn.com/w51NO7XRDTA5/?ref=app

15th Apr 2017, 8:57 PM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
5 Respostas
+ 21
Remove the "action" attribute...
18th Apr 2017, 12:45 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 15
The action is usually the name of the php file. In this case, the file is called "source.php" I couldn't get forms to work in Code Playground so, if you do, please let me know.
15th Apr 2017, 9:26 PM
Jafca
Jafca - avatar
+ 13
The submit button/post method requires you to refresh the page, something which I think Code Playground doesn't let you do.
16th Apr 2017, 8:18 AM
Jafca
Jafca - avatar
+ 1
It does not work
16th Apr 2017, 1:45 AM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
- 2
no idea XD
17th Apr 2017, 1:46 PM
Paruyr Gevorgyan
Paruyr Gevorgyan - avatar