#Whats the problem

12 messages · Page 1 of 1 (latest)

burnt badger
#

Try moving line 9 to be on the same line as line 8

twin magnet
#

key in the array does not exist

#

something is wrong with the post request

twin magnet
#

unlike python which depends on whitespace PHP will ignore it all

twin magnet
# twin magnet something is wrong with the post request

when you make the post request $_POST is an array of POST values captured from the form, you are indexing it with a key expecting that key or value in the array or rather map to include those three indexed values. If the post form does not have those same exact keys to match input it will fail and then cause the interpreter to error out or output the error when processing the POST request and formatting it onto the HTML document. Check the forms or you can use a process of debugging that checks if the value exists within the map $_POST. My bad, this is a map because the value you are indexing is a key and the result of that POST index for the key is the form matched payload.

#

extending on this

Here is an example of the whitespace consumer

func (lex *LexerStructure) ConsumeWhiteSpace() {
    for lex.Char == ' ' || lex.Char == '\t' || lex.Char == '\n' || lex.Char == '\r' {
        lex.ReadChar()
    }
}

this is the same for most languages like PHP if you can picture that function written in C

this function will take source code input like

let x                     =        $_POST["hello

"]; try { ECHO ""...};

anc convert it to

let x=$POST["hello"]; try { echo "$x"}
burnt badger
mystic canyon
#

hmm

mystic canyon
#

What should I do now

#

i dont understand