Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] $_POST is getting only the last field
#4

(03-11-2015, 08:06 PM)fcordeiro Wrote:
(03-11-2015, 07:46 PM)ciadmin Wrote: Did you notice that your 'message' field is the only one with a 'name' attribute?
PHP uses that for POST parameters, and not the 'id' attribute.
Add the 'name' attribute to your other fields and they should be accessible to your code.

Thank you! Just after post the message I saw it. CTRL + C / CTRL + V, always replicating our own mistakes Dodgy This post can be closed.

I will leave the post here, in case other users have the same problem. It is not the first time I have seen it Undecided
Reply


Messages In This Thread
RE: [SOLVED] $_POST is getting only the last field - by ciadmin - 03-11-2015, 10:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB