| | |
Email in php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
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);
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);
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"; Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
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
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
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
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>
<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>
php Syntax (Toggle Plain Text)
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> ........
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Similar Threads
- Sending HTML email via PHP mail function (PHP)
- Learning PHP but problem with script (PHP)
- Multiple Forms Question PHP (PHP)
- checkbox values calculation with PHP (PHP)
- PHP Email (PHP)
- Simple Email Form (PHP)
Other Threads in the PHP Forum
- Previous Thread: building graph with swf flash
- Next Thread: thread hwo come first???
| Thread Tools | Search this Thread |
ajax apache api array basics beginner binary bounce broken cakephp checkbox class cms code codingproblem combobox cron curl database date display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla js limit link login mail menu mlm mobile multiple mysql nodes oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion regex remote return script search server sessions smash sms soap source space sql syntax system table tutorial up-to-date update upload url validation validator variable video web webapplications websitecontactform xml youtube






