$new = $doc->createElement("Cars");
to open an element how would I close this element?
and if i have a text box
<input type="text" name="toCity">
how can i write what the user puts in the textbox as an element?
Any help would be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This line:
don’t create just an open tag but the whole element. This means that if you don’t append elements to Cars, it will be an empty tag which is like:
otherwise, you can append elements using the appendChild() method and it will look like:
Anyway to add a text in a textarea you can use this code: