Thanks for the help so far... I love you guys!
I have the following:
Code: Select all
<?php
//display the code with the remainding digits padded with X's
echo '<span ID="copytext" STYLE="height:100;width:150;" style="color: #003366;"><font face="Arial" size="4"><B>CODE IS "' . str_pad($code_so_far, 8, "X") . '"<B></font></span>';
// button for copying the code above to clipboard
?><TEXTAREA ID="holdtext" STYLE="display:none;">
</TEXTAREA>
<BUTTON onClick="ClipBoard();">Copy Code</BUTTON><?
?>
Now as you can see, all works fine and dandy... except it selects "CODE IS ANDHDTSX" and all I want is the "ANDHDTSX" (ANDHDTSX is for example purposes only).
Now I tried adding a span within a span to limit the selection to the str_pad($code_so_far, 8, "X") section but php didn't like that and I get a blank page. Yay.
So... lets play who can find a way around this loophole! First person to win gets a free lunchbox!
