+ 3
Why this code dont work?
14 Antworten
+ 4
Julianna $_POST form validation it won't work
I tried again to do that but it won't work in Sololearn
+ 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.
+ 3
Thank for answers☺
+ 2
Read the first answer( marked with green tick ✅) in this link below...
https://stackoverflow.com/questions/10809937/undefined-index-with-post
+ 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.
+ 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.
+ 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.
+ 2
Post index 'name' is not defined
Write this code
If(isset ($_POST['name']))
{
echo $_POST['name'];
}
+ 1
I want to make a form validation with $_POST variable.R。◕‿◕。🌷🇮🇳
+ 1
I can't use $_POST method in Sololearn ? A͢J
+ 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..
+ 1
It won't work in solo learn
- 1
hi
- 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