Learn about problems with solving PHP and HTML

Source: Internet
Author: User

This semester is learning php+mysql+html ... Anyway good miscellaneous.

Today, programming is experiencing two problems.

Question one:

1. Use PHP $_post to receive data from the textarea.

2, because textarea, can not be like other types of input, that is, can not:

<input type= "textarea"/> So the result space is text. Cannot enlarge write area

and only:

<textarea name= "MyText" cols=30 rows=30></textarea> so that the textarea can be recalled.

3, then the problem I met, began to like W3cschool said, add attribute: form= "Form1" Form1 for its owning form

However, I can not use $_post["MyText" on the receiving side. have been unable to accept, error

4, finally, I try to remove the form inside, <textarea> write to the form inside, it succeeded.



Question two:

1, about the automatic emergence of the <div> drop bar problem.

2, when the first layer of <body> under the <div>, if in which the attribute is directly added: Overflow:auto; This is not going to work.

3, I will try to add a <div> under the <div> of this layer, and then add the data I want to save to this layer <div> and then succeed.

Learn about problems with solving PHP and HTML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.