What about resolving errors of the attached code? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

What about resolving errors of the attached code?

I have got a problem with the following code https://code.sololearn.com/wTO7ni2yNPr0/?ref=app

8th Oct 2018, 8:39 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
1 ответ
+ 3
first you should have a POST request; The $_POST Variable The $_POST variable is an array of variable names and values sent by the HTTP POST method. The $_POST variable is used to collect values from a form with method="post". Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send. http://w3schools.sinsixx.com/php/php_post.asp.htm http://php.net/manual/en/reserved.variables.post.php Here is a working example with a test array instead of the $_POST <?php $testVar = ['test1', 'test2', 'test3']; for($index=0;$index<3;$index++) { $name=$testVar[$index]; $varvar=$name; echo $name.'<br/>'; } ?>
8th Oct 2018, 9:01 AM
Willem Roos