D
danielboendergaard
Hey
Im making a homepage in php. I use a html form to put data into mysql
and i want to make some buttons which inserts user input values into a
textarea. I have used a button like this:
<input type="button" value="Add Quote"
onclick="document.getElementById('nyhed').value+=''">
The button works fine and insterts into the textarea.
Although I want to make a button which onclick asks the user for a
input and inserts it into the textarea. The script would in this case
ask for an input and insert
textarea.
Does someone know how to do that?
Im making a homepage in php. I use a html form to put data into mysql
and i want to make some buttons which inserts user input values into a
textarea. I have used a button like this:
<input type="button" value="Add Quote"
onclick="document.getElementById('nyhed').value+=''">
The button works fine and insterts into the textarea.
Although I want to make a button which onclick asks the user for a
input and inserts it into the textarea. The script would in this case
ask for an input and insert
into theUSER INPUT
textarea.
Does someone know how to do that?