I have 3 little (I think they're little questions:
First I have forms of my site (for automatic creation of Reviews, News etc.) Where you enter text into a form. My scripts then take the text and put it into a MYSQL database.
The problem is that when the form submits the text, it ignores spaces and stuff (like if someone hits enter to go down a little)
The only way I could think of is if I use a string when another Script goes to get the text, that inserts a "<BR>" after a certain number of characters. The problem with this however is that it cuts off words and still ignores Spaces (or when I hit enter)
Second, I would like to send Email in PHP like this:
$body = "<body bgcolor="ffcc00"> blah blah blah, and a lot more HTML, Including <img src=http://www.phpbuilder.com/board/archive/index.php/mypic.gif>";
mail("[email protected]", "SUBJECT", "$body", "From:BJ LAND");
How do I enable this to use my HTML ?
and the third (finally!)
How would I have a script send mail at a specified time every day or so? (by it self) like a new things list.
Please, PLEASE!!! respond. Thanks a lot!
First I have forms of my site (for automatic creation of Reviews, News etc.) Where you enter text into a form. My scripts then take the text and put it into a MYSQL database.
The problem is that when the form submits the text, it ignores spaces and stuff (like if someone hits enter to go down a little)
The only way I could think of is if I use a string when another Script goes to get the text, that inserts a "<BR>" after a certain number of characters. The problem with this however is that it cuts off words and still ignores Spaces (or when I hit enter)
Second, I would like to send Email in PHP like this:
$body = "<body bgcolor="ffcc00"> blah blah blah, and a lot more HTML, Including <img src=http://www.phpbuilder.com/board/archive/index.php/mypic.gif>";
mail("[email protected]", "SUBJECT", "$body", "From:BJ LAND");
How do I enable this to use my HTML ?
and the third (finally!)
How would I have a script send mail at a specified time every day or so? (by it self) like a new things list.
Please, PLEASE!!! respond. Thanks a lot!