Populate a form
-
I am creating a plug-in that allows the users to create their own post. I have seen other plug-in’s but they really didn’t do what I was looking for.
I got the posting down, but am having a problem trying to populate my form to let them edit their posts. When they want to edit the post, I pull the content from get_post and send it to the form they used when creating the post. I am doing this by passing the content as a standard HTTP post. I urlencode it first, since the post content appears to have line feeds, and then populate the form. But I am getting all sorts of encoded char. Like ‘\’ is front of commas, and <br \> tags within the multi line edit box.
I tried to urldecode the strings when they came in but that didn’t do anything.
How can I get rid of these before populating the form or is there a better way?
Thanks.
- The topic ‘Populate a form’ is closed to new replies.