27th Jul 2021, 4:25 PM
Tree Lover
Tree Lover - avatar
14 Respostas
+ 4
Julianna $_POST form validation it won't work I tried again to do that but it won't work in Sololearn
27th Jul 2021, 5:06 PM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 3
you can't do it on sololearn, if you're on pc install xampp or wampp on Android you use KSWEB app for it and by using the POST method you're able store user data on MySQL database :)" hope it helps.
28th Jul 2021, 11:53 AM
Rohit Singh
Rohit Singh - avatar
+ 3
Thank for answers☺
28th Jul 2021, 12:02 PM
Tree Lover
Tree Lover - avatar
+ 2
Read the first answer( marked with green tick ✅) in this link below... https://stackoverflow.com/questions/10809937/undefined-index-with-post
27th Jul 2021, 4:47 PM
RKK
RKK - avatar
+ 2
Julianna $_POST will works when you submit the form and send data to another PHP file which is action file and in that action file you get data using $_POST. So here on Sololearn $_POST will not work.
27th Jul 2021, 4:49 PM
A͢J
A͢J - avatar
+ 2
Julianna Yes not possible here because Sololearn support only single page. So you can't get submitted data using $_POST. You can only write simple PHP programs but can't work with form.
27th Jul 2021, 4:53 PM
A͢J
A͢J - avatar
+ 2
Adding to what others had explained, your submit button should have its 'type' attribute value 'submit'. You had typo writing it 'sumbit' so the button doesn't show up. You'll need it to test your code where form submission is supported.
27th Jul 2021, 5:25 PM
Ipang
+ 2
Post index 'name' is not defined Write this code If(isset ($_POST['name'])) { echo $_POST['name']; }
28th Jul 2021, 3:03 PM
Gaurav Dixit🇮🇳
Gaurav Dixit🇮🇳 - avatar
+ 1
I want to make a form validation with $_POST variable.R。◕‿◕。🌷🇮🇳
27th Jul 2021, 4:46 PM
Tree Lover
Tree Lover - avatar
+ 1
I can't use $_POST method in Sololearn ? A͢J
27th Jul 2021, 4:51 PM
Tree Lover
Tree Lover - avatar
+ 1
Julianna No $_POST won't work here you can try in to your PC u need to install server u can use Xampp or anyone..
28th Jul 2021, 4:57 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
It won't work in solo learn
29th Jul 2021, 1:10 PM
🤑_Eyo_🤑
🤑_Eyo_🤑 - avatar
- 1
hi
29th Jul 2021, 3:13 AM
NIRANJAN TECH- தமிழ்
- 1
Just like juliana said post will works when you sub MIT the format and data to another PhD file which is action file and in that action file you get data using $_PPOST
29th Jul 2021, 1:50 PM
🤑_Eyo_🤑
🤑_Eyo_🤑 - avatar