| | |
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 |
5.2.10 action apache api array beginner binary broken cakephp checkbox class classes cms code cron curl database date destroy display dynamic echo echo$_get[x]changingitintovariable... email encode error fcc file files folder form forms function functions google header howtowriteathesis href htaccess html if-else image images include insert ip javascript joomla limit link local login mail memberships menu mlm mod_rewrite multiple multipletables mysql mysqlquery neutrality oop open passwords paypal pdf php provider query radio random record remote rss script search server sessions sockets source space sql strip_tags syntax system table template thesishelp tutorial update upload url validator variable video voteup web window.onbeforeunload=closeme; youtube






