some questions about PHP | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

some questions about PHP

Am i the only one where the form thing with php doesn't work? like nothing shows up in the output and it feels kinda broken or something but the thing is if it isn't for the form thing what else can you do with php? is there another project you can make with php without having problems? ps: if you don't know what i mean with form thing its kinda like this: <form action="dynamic.php" method="post"> <input type="text" name="name"> <input type="submit" name="submit"> </form> <h1>Hello my name is <?php echo $_POST['name'] ?> <?php $name = $_POST['name']; ?>

7th Dec 2019, 9:17 PM
Nydenii
Nydenii - avatar
7 Answers
+ 7
If it's about same login form or sign in form then that will only work in system on your PC with local environment of xampp server in php my admin. For running php code PC is more preferable than mobile
7th Dec 2019, 9:34 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 6
Den Anderen are you using this code in sololearn application or in your PC
7th Dec 2019, 9:20 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 6
On sololearn post method will not work as for post method you need to use database connection and communication. If you can paste whole code which you are using then I can help much according to what you want to accomplish by this code snippet of it just about the form then this is one example we make form in php https://code.sololearn.com/wNJIukAbu15e/?ref=app https://code.sololearn.com/wROnH9CNUFVf/?ref=app
7th Dec 2019, 9:24 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 1
ah i see Thanks for the help man i've really been stuck for decades and i didn't know what to do :D
7th Dec 2019, 9:36 PM
Nydenii
Nydenii - avatar
0
on my phone
7th Dec 2019, 9:21 PM
Nydenii
Nydenii - avatar
0
rip i removed the code cuz it didn't work
7th Dec 2019, 9:32 PM
Nydenii
Nydenii - avatar
0
but i just wanted to do what i did in my example iny first post
7th Dec 2019, 9:33 PM
Nydenii
Nydenii - avatar