im new here, and ive search the forums trying to find and answer to my problem, but i didnt find any
so here is my problem.
i have a form that submits data to mySQL, and i want to switch to <BR> when you hit enter, so i did this
$description = $_POST['description']; $description = str_replace(" ","<br>","$description");
and it works, but now i have a form that edits the Description, but when i get the data from mySQL i get the info and the <BR> codes. so when i submit the form again to edit something it uploads 2 <BR>.
what i want is to get the data form mySQL but i want it to appear without the <BR>, ive tried:
$description = $_POST['description']; $description = str_replace("<br>"," ","$description");
before i call the edit form. but that doesnt works :S im kinda lost
i need help please.
thank you =-]
excuse my english, is not leet