Php Post method not passing string after space character

QuestionsPhp Post method not passing string after space character
Jehal Desai Staff asked 4 years ago

I am having trouble with the POST method after submitting a form. It is not passing the complete string after submitting the form, but it shows correctly in the "select" & "option" html.
in the database i have a table called "administradores" with a column called "id" and other called "administrador":
id: 1
administrador: "Alejandro Salgado"
this is the php code:

}
this is the html code:

And it shows the name "Alejandro Salgado" correctly:
html result
but when I submit the form and var_dump($_POST["administrador"]), it returns only the first name "Alejandro":

What is going on?


View on Stack Overflow