i need to be able to insert text into a textbox/textarea when an image is clicked without using javascript. is this possible?
phparion
6:18 am on Feb 18, 2008 (gmt 0)
you can always do it with PHP but your page will refresh since PHP requires a server side event to do something. With javascript you dont go to server and can do it on the client end i.e without refreshing the page.
for such tasks javascript is recommended
dragon master mokuba
7:52 am on Feb 18, 2008 (gmt 0)
well, i cant seem to get the javascript working. what is the code i need? i have it in php by submitting the form that its part of and reinserting the text into the textbox with the value added to the end. i would prefer javascript, but it isnt working.
whoisgregg
2:32 pm on Feb 18, 2008 (gmt 0)
There's a Javascript forum [webmasterworld.com] at WebmasterWorld. :)