php - form variables not passing -
It seems that my code is correct, although the updates in the post variable form in the form do not echo in the user settings page. I echoed the ID from the input in the database but can not get the variable to show me. I have done it correctly in Codeigniter but I'm trying to do it in pure PHP with my own framework.
$ users = new users ($ db); comes from my init.php file which is called at the beginning of the file.
When I
I get zero
Try $ _REQUEST ['first_name'] before submitting it to the array .
& lt ;? = $ _ Request ['first_name']? & Gt; & Lt; Input type = "text" name = "first_name" value = "& lt; php if (isset ($ _ POST ['first_name'])) {echo htmlentities (strip_tags ($ _ POST ['first_name'])); } Else {echo $ user ['first_name'];}? & Gt; "& gt; Try this code
Comments
Post a Comment