| | |
php mailto () fuction
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
•
•
I didn't get you.. What I said was,
concat <img src='row1['broad1']> to $message. So, it will be like,
$message.=$row1['broad1'];
then again,
php Syntax (Toggle Plain Text)
$message.=<p> </p></div></th> <td width=\"77%\" scope=\"col\"><table width=\"99%\" border=\"0\" cellpadding=\"10\" cellspacing=\"0\"> <tr> //.... and so on
also there will be more than one image to be placed on this page, that is why i was asking if it would be possible to assign the data from the db to their own variables.
the page that will be emailed out will have a title section with an image and some body text and underneath that there will be the same again with different titles images and text.
the last line of mysql query now looks like this
i think that is how you wanted me to put it. it is now giving me an error when i try to load the page saying unexpected $ at the end of the code but this must have something to do with the $message=. within the html code.
can the mail function only send pure html with no php inside the message body. if that is the case could something like $message=<a href="broad_prev.php"></a> work to get the page to display once the email has been sent.
$message.= '<img src="'.$row['broad1'].'"/>'; i think that is how you wanted me to put it. it is now giving me an error when i try to load the page saying unexpected $ at the end of the code but this must have something to do with the $message=. within the html code.
can the mail function only send pure html with no php inside the message body. if that is the case could something like $message=<a href="broad_prev.php"></a> work to get the page to display once the email has been sent.
•
•
•
•
i think that is how you wanted me to put it. it is now giving me an error when i try to load the page saying unexpected $ at the end of the code but this must have something to do with the $message=. within the html code.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
Why not write a new script ? You can check this example here to send mails with attachments.
http://www.webcheatsheet.com/PHP/sen...attachment.php
http://www.webcheatsheet.com/PHP/sen...attachment.php
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
i have just been looking more at the example that uses the textarea and to get the body of the message imported into the email it uses this
could this line of ode be modified so that instread of the body in the request it would look something like this
can the $_request variable be used to recall a page instead of an textarea?
$message = $_REQUEST["body"]; could this line of ode be modified so that instread of the body in the request it would look something like this
$message = $_REQUEST["broad_prev.php"]; can the $_request variable be used to recall a page instead of an textarea?
•
•
•
•
Why not write a new script ? You can check this example here to send mails with attachments.
http://www.webcheatsheet.com/PHP/sen...attachment.php
i would be happy to do it this way but i do not have the final say on how the email will look and the boss wants the email to be the message without attachments.
![]() |
Other Threads in the PHP Forum
- Previous Thread: combing html form and form handler in same page
- Next Thread: Can't get exec() or system() to work.
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javascript joomla keywords limit link login loop mail menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube






