Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Tutorials and Tips (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=27)
-   -   Pet biographies! (http://www.mysidiaadoptables.com/forum/showthread.php?t=5227)

parayna 12-23-2016 06:09 PM

Yeah, they are ahah XD No problem! ^_^

kristhasirah 05-03-2017 09:08 AM

if you change the $petbioForm->buildTextArea with

PHP Code:

        $petbioForm->buildTextArea("petbio",$bio)->buildButton("Change Bio""submit""submit"); 

the current bio will be displayed in the text box that way if the user want to edit instead of rewriting the full bio
for this code to work you must also add the stripslashes code posted by parayna =)

in the end it must look like this:
PHP Code:

        $bio stripslashes($adopt->getPetbio()); 
        
$petbioForm = new FormBuilder("petbioform""""post");
        
$petbioForm->buildTextArea("petbio",$bio)->buildButton("Change Bio""submit""submit");
        
$document->add($petbioForm); 

in case i dint explain well ^^


All times are GMT -5. The time now is 11:07 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.