PDA

View Full Version : Immediately show textbox code after adopting?


crydrk
08-02-2009, 03:28 PM
What I want is for people to be able to see on the doadopt.php page a textbox with code for myspace immediately after adopting a pet.

I've successfully modified the code on the page where it normally shows the bbcodes and html codes to do alternate code for html:

$article_content = $article_content."<p><u>HTML Code (for myspace or other websites)</u>:</p>
<p>
<textarea name='textarea' cols='50' rows='4'><a href=\"http://www.".$domain."".$scriptpath."/levelup.php?id=".$aid."\" target=\"_blank\">
<img src=\"http://www.".$domain."".$scriptpath."/get/".$aid.".gif\" border=0></a>
</textarea>

</p>";

And I have also realized that on the doadopts page I need to change 'aid' to 'id' but when I put this code in all that happens is it shows the image as it would appear as a signature but no text box whatsoever.

BMR777
08-02-2009, 03:53 PM
It shouldn't be showing the image, it should show the code for the image. Can you paste all of your doadopt.php code here please? :)

crydrk
08-02-2009, 04:27 PM
Ah, unfortunately I had gotten that far in the process by trial and error, and I have since deleted it without a backup. (my bad) I've been trying to recreate the problem, but with no success unfortunately.