Joke Collection Website - Public benefit messages - Submit and receive php forms

Submit and receive php forms

Both upstairs are right!

I want to give some optimization suggestions to the landlord.

Since they are all html, you don't need to use php's echo to output html, which is not conducive to running optimization.

In addition, since there are no php variables in quotation marks, it is beneficial to use single quotation marks to optimize the program.

Finally, if there is no other code under the php code, what is the last one? & gt can be omitted.

I also found your form illogical.

First, your two button types are buttons, so how do you submit the form?

Second, the parameter of the $_GET[] variable in php should be the parameter key, which is the name attribute value of the form element for the form and the one to the left of the equal sign of the url parameter for the url, such as name = value.

And your $_GET['name'], where is the name attribute in your form element?