DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Email in php (http://www.daniweb.com/forums/thread111317.html)

lydia21 Feb 28th, 2008 6:17 am
Email in php
 
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);

nav33n Feb 28th, 2008 6:31 am
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";

lydia21 Feb 29th, 2008 1:44 am
Re: Email in php
 
thanks tat was helpfull

lydia21 Feb 29th, 2008 1:51 am
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

nav33n Feb 29th, 2008 2:24 am
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.

lydia21 Feb 29th, 2008 3:19 am
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>

nav33n Feb 29th, 2008 3:26 am
Re: Email in php
 
if ($_POST['jobtype'] == $value_of_option_in_the_database) { 
$selected = "selected";
} else {
$selected = "";
}
?>
<select name='jobtype' style='width: 350px'>
<option value='$line[4]' <?php echo $selected; ?>>$line[4]</option>
<option value='Employee' <?php echo $selected; ?>>Employee</option>
........

kings Feb 29th, 2008 5:17 am
Re: Email in php
 
could u give some brief description because i'm not getting you

orko Mar 1st, 2008 7:09 pm
Re: Email in php
 
kings@ What do you need to know? And what you are not getting?


All times are GMT -4. The time now is 6:15 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC