Doing this PHP is a bit refreshing after Javascript, since it is much less complex and has less quirks and I don't have to deal with that nasty DOM interface.
here is creating a new element in javascript
var newElem = document.createElement("p");
newElem.innerHTML = "test";
var selector = document.getElementsByTagName("body")[0];
selector.appendChild(newElem);
All I'm doing there is creating a paragraph element and attaching it to the body tag and inserting the word test inside that paragraph. I'm sure you can see how things can get ugly real quick. I can't wait to get into the SQL portions of this study so I can interact with databases and make things like a blog.
here is creating a new element in javascript
var newElem = document.createElement("p");
newElem.innerHTML = "test";
var selector = document.getElementsByTagName("body")[0];
selector.appendChild(newElem);
All I'm doing there is creating a paragraph element and attaching it to the body tag and inserting the word test inside that paragraph. I'm sure you can see how things can get ugly real quick. I can't wait to get into the SQL portions of this study so I can interact with databases and make things like a blog.