You need to be using client side code like javascript which works in the html page after it arrives in the user's browser rather than server side php which can only affect the page before it is sent.
PT Matthew Cserhati wrote: > $seq="ACGTGACG"; > > for ($i=1;$i<=1000;$i++) { > mutate($seq); > print "<div id=\"opseq\">"; > print $seq; > print "</div>"; > } > > In the above php code I have a variable, $seq, which mutates over 1000 > cycles. I have surrounded this element with div tags, and have given it the > id opseq. What I would like to do is to be able to reach this element and > change it every cycle. However in the html output I want the element to stay > in the same place and be overwritten during each cycle. I gather that I have > to change the element through the dom structure of the document, but as how I > can do this i have no idea. > > Can anyone help? > > Thansk in advance! > > csmatyi > >