Hello all,
I have no clue of HTML, but at least so far I wrote some forms/labels,inputs and a show-button...my problem is:
I want a homepage where people write something in the input-box and I can call the value of the input-box.
Now first I wanted to keep it on the same page, I just hide all the forms and show a div. But the variables I call for don't update (or document.write(var) doesn't work in Chrome), so they just show nothing, obviously. (it works with alert(var)
Is there any way to either update the div later on, that the variables are shown, or to somehow get where I want to be?
document.write only runs when the page is loaded. Also it's javascript, which means the data disappears once the user leaves the page. If you're OK with the latter you might use e.g. innerHTML instead of document.write, but if you want to store the data for the future you need a server side script like PHP.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)