| | |
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 |
apache api array beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external fcc file files folder form forms forum freelancing function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert ip javascript joomla limit link login mail malfunction menu method mlm mod_rewrite multiple mysql neutrality oop pageing pagerank paypal pdf php phpmysql play problem query question radio random recursion remote root script search select server sessions sms soap source space sql support! syntax system table template tutorial update upload url validator variable video web youtube






