Hi everyone, so i have an html and PHP code of a form with following code:
But whenever I submit something, it throws
Warning: Undefined array key "hello" in /root/luna/test.php on line 2
I’m clueless and tired. How can I fix that?
Hi everyone, so i have an html and PHP code of a form with following code:
Warning: Undefined array key "hello" in /root/luna/test.php on line 2
not
id="hello"
but
name="hello"
Now going to find articles for this.Wait a moment…
Article found!
Thanks, man. I’m completely drunk.
Why w3schools? Moz is sooo much better, and they don’t have a history of being incorrect.
Guessing you mean MDN? It doesn’t cover PHP.
If not, please send a link to Moz as I can’t find it.
You can get content of forms in any backend language, OP’s backend program is quite irrelevant to the question.
I would 100% recommend MDN when it comes to JavaScript/Web development.
I’m sorry, but you’re wrong here. The title of the post is “Forms in PHP 8.2”, and the post says “i have an html and PHP code”, so the backend language is quite relevant.
I’m on the same boat here, and am only a bit dissatisfied with their search function. W3 uses Google though… so their function was completely broken when I needed it. Don’t question it
Emmm that’s my only knowledge of the online website tutorials so quite normal for me
And,yes,never heard of that.
Oh really?
Yes you are right that OP has mentioned using PHP which makes it relevant, however the mistake was done in the frontend which means there is no need to use PHP in order to commit such a sin.
That was me in 2019, Idk how you have been to programming and such but you will learn more as you move
Oh yes. There was a website dedicated to pointing that out: https://www.w3fools.com/
You can find their most recent archive here: https://web.archive.org/web/20140531121518/http://www.w3fools.com/, and an archive which documented the errors here: https://web.archive.org/web/20110412103745/http://w3fools.com/.
I concur.
Yeah, my bad
I think that’s right. But it does not matter, as the part of the code that was incorrect was the HTML, something MDN does cover.
It is relevant to the question, yes. But it’s not relevant to the anwser.
Oh yeah. There was an entire website dedicated to everything that they had wrong on their site. It was quite the list.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.