Now I have tried for two days and don’t understand why this isn’t working. I used to do like this but haven’t been working with web stuff for some time and I guess new things happened or I just forgot.
I have tried some scripts I found on the web, but this part isn’t working.
I just want to create a form and post the fields and then insert into my db.
When I write the code like this it is working:
$firstname = 'Mr Mister';
But when I try this it won’t work.
$firstname = $_POST["name"];
So what is wrong here? What should I do to make it work? I’m lost.
And yes, I will sanitize the inputs later before putting them in my tables.
Aha. Yes, the ! shouldn’t be there of course.
I tried that, but nothing was added and then I removed the == and just put = there.
And now it seems to be working.
I forget things like this when I haven’t been working with this for a long, long time. Probably over a year since I tried last time. I will now try to learn again. Old man. Hard to learn. Over 50 and started with this as a hobby years ago.