View Single Post
  #12  
Old 05-03-2017, 09:08 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,431
kristhasirah
Default

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 ^^
Reply With Quote