| | |
php mailto () fuction
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
•
•
can the $_request variable be used to recall a page instead of an textarea?
Umm.. I think you can try,
$message = implode("",file("broad_prev.php")); Not sure, but you can try that. Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
that has done better than the rest. it has tried to send the mail but only the very last line was showing up on the email. none of the images or text has come through with it.
where the php is on the page being sent it has just sent the closing tags and not the actual image that is being recalled from the db on that page.
where the php is on the page being sent it has just sent the closing tags and not the actual image that is being recalled from the db on that page.
•
•
•
•
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$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?
If you want $message to contain that pages content... use this:
$message = fopen("http://www.yoursite.com/broad_prev.php", "r"); Last edited by peter_budo; Apr 5th, 2008 at 1:31 pm. Reason: Keep It Organized - please use [code] tags
i have looked at the fopen function over the weekend and i thought that the get file_get_contents function would work better than the fopen.
the code i am using now looks like this
but on the email that is sent out it has no content held within it.
do i need to use the fopen, fread, or fwrite functions to get it to display the contents of the page. the page that i am trying to display uses nysql to retrieve images from a database and places them on to the page.
i have a line of code at the bottom which states what should be sent with the message which looks like this
should the variable message be set to the contents of the page and therefore be displayed in the message body.
the code i am using now looks like this
$message = file_get_contents ('my website'); but on the email that is sent out it has no content held within it.
do i need to use the fopen, fread, or fwrite functions to get it to display the contents of the page. the page that i am trying to display uses nysql to retrieve images from a database and places them on to the page.
i have a line of code at the bottom which states what should be sent with the message which looks like this
mail($contactemail, $subject, $message, $headers); should the variable message be set to the contents of the page and therefore be displayed in the message body.
![]() |
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 |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code codingproblem cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail memmory menu methods mlm mod_rewrite multiple mysql oop parameter parse paypal pdf php problem query radio random recursion regex remote script search select send server sessions sms soap source space speed sql static structure syntax system table tutorial up-to-date update upload url validation validator variable video web wordpress xml youtube






