Jump to content

$_post["submit"] Question


chibineku

Recommended Posts

I am creating an all in one registration/login form, in case someone clicks register by mistake and wants to login without hitting another link, or if it turns out they're already in the database. If I have two buttons, one named register and one named login, will the $_POST variable only return true for the name of the one that is pushed?

Link to comment
Share on other sites

If they both have the same name then it will submit the value (text) of the button that was clicked for that name. If the buttons have different names I think it will submit both of them. Might as well test it though and find out.

Link to comment
Share on other sites

You can get the name from the $_POST variable...thank goodness for that!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...