0

This php code is not working plz help me out......

https://code.sololearn.com/wzCRKH569qrK/?ref=app

11th Mar 2018, 5:25 PM
Manisha R Gupta
Manisha R Gupta - avatar
2 Respostas
+ 29
You are trying to access the variable, that doesn't exist. Use isset($_POST['name']) to check if a variable exists. Unfortunately, Sololearn doesn't support form submitting and handling. Try to run this code on your local server.
11th Mar 2018, 5:45 PM
Igor Makarsky
Igor Makarsky - avatar
+ 2
you're setting $name, $age, etc. to isset($_POST['name']). That will return a boolean so your just setting the variables to true or false.
13th Mar 2018, 2:05 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar