943,579 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 652
  • PHP RSS
Feb 28th, 2008
0

Email in php

Expand Post »
hi
i want to print some retrieved data base content in the body(for email)
please tell me how to do tat.........
$body1 = "Your Resume Titled" $restitle "which was posted on " $day";
i want to know how will the syntax for sent be wen there is BCC and CC

$sent = mail($to, $subject1, $body1, $headers);
Similar Threads
Reputation Points: 19
Solved Threads: 5
Junior Poster
lydia21 is offline Offline
183 posts
since Nov 2007
Feb 28th, 2008
0

Re: Email in php

Check example 4 here. http://us.php.net/function.mail . And, $body1 can have the variable values within double quotes.
$body1 = "your resume $restitle was posted on $date";
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Feb 29th, 2008
0

Re: Email in php

thanks tat was helpfull
Reputation Points: 19
Solved Threads: 5
Junior Poster
lydia21 is offline Offline
183 posts
since Nov 2007
Feb 29th, 2008
0

Re: Email in php

hi i have a dropdown and list box in a form.after selecting,when the user clicks submit data will get submitted.
for edit i want the items to be selected .when the user make changes in the control and click update it should get updated...i want to know how to show the controls as selected after retrieving from db
Reputation Points: 19
Solved Threads: 5
Junior Poster
lydia21 is offline Offline
183 posts
since Nov 2007
Feb 29th, 2008
0

Re: Email in php

When the user submits, get the listbox value. Check if it matches with the value in the database and make it selected.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Feb 29th, 2008
0

Re: Email in php

i tried something like this.....the selected value is getting displayed.since the option button contains option the selected value is getting displayed once and the same option value is also getting displayed....how to do tat

<select name='jobtype' style='width: 350px'>
<option value='$line[4]' selected>$line[4]</option>
<option value='Employee' selected>Employee</option>
<option value='Temporary/Cotract/Project'>
Temporary/Cotract/Project</option>
<option value='Intern'>Intern</option>
<option value='Per Diem'>Per Diem</option>
Reputation Points: 19
Solved Threads: 5
Junior Poster
lydia21 is offline Offline
183 posts
since Nov 2007
Feb 29th, 2008
0

Re: Email in php

php Syntax (Toggle Plain Text)
  1. if ($_POST['jobtype'] == $value_of_option_in_the_database) {
  2. $selected = "selected";
  3. } else {
  4. $selected = "";
  5. }
  6. ?>
  7. <select name='jobtype' style='width: 350px'>
  8. <option value='$line[4]' <?php echo $selected; ?>>$line[4]</option>
  9. <option value='Employee' <?php echo $selected; ?>>Employee</option>
  10. ........
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Feb 29th, 2008
0

Re: Email in php

could u give some brief description because i'm not getting you
Reputation Points: 3
Solved Threads: 2
Junior Poster
kings is offline Offline
107 posts
since Nov 2007
Mar 1st, 2008
0

Re: Email in php

kings@ What do you need to know? And what you are not getting?
Reputation Points: 46
Solved Threads: 11
Junior Poster
orko is offline Offline
164 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: building graph with swf flash
Next Thread in PHP Forum Timeline: thread hwo come first???





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC