Ok…. does anybody know why, when I submit a form… that has the code ♥ in it, it converts it to a heart.. and when you goto edit it, it changes it into a ?….?????? its getting on my nerves.. and IDK why its doing it.. I really dont think its my code.. but yeah… thanks…
@NogDogDec 16.2006 — #Not exactly sure what you're asking, but [b]♥[/b] is the HTML character entity for a heart symbol (you can also do spades, clubs, and diamonds). If you want a literal ampersand character followed by the word "hearts;" in your HTML text, then you should use the [b]&[/b] chacter entity:♥
@Kyleva2204authorDec 16.2006 — #sorry, i was flustered at the time... ok heres the deal.. I have a form.. and input fields... Right? well, on the input fields, say i put the ♥ thingy.. and when I click submit, it updates the date in the database.. cool. But when I go back to the form, it makes it a heart.. again- what i want it to.. HOWEVER, if I keep it there, and resubmit the form, it turns into a '?'... soo yeah, idk waht is going on. please help.
@NogDogDec 16.2006 — #When you output it to the page, use the htmlentities() function. For instance, if the value you want to output as the pre-filled value of a textarea is in the variable $text: [code=php] <textarea name="example" cols="40" rows="4"><?php echo htmlentities($text); ?></textarea> [/code]
@Kyleva2204authorDec 16.2006 — #yeah actually, right after I made that post, I was looking into that on php.net in the reference. I added it imeditalyl.. I knew it would work, but I wasn't sure how much would affect my code... and how it would work on the user end... and its quite nice. I didn't expect it to work so well with the encoder and decoder, soo yeah, thanks thou ?.