|
use BCC variable in your headers
FROM PHP.net manual[^]:
<?php
// multiple recipients
$to = 'aidan@example.com' . ', '; // note the comma
$to .= 'wez@example.com';
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>
|
|
|
|
|
look up "blind carbon copy"
|
|
|
|
|
It's a long shot but:
Anyone know of any PHP exams available to do online or in the UK - expecially recognised ones?
I Googled for hours and found nothing of great value...
Considering the size of it's following - I thought there would be more available.
|
|
|
|
|
As i know from isreal, the only way to do the PHP exam is to go to one of the avalable comanies and take the exam there... sorry
Gindi Bar Yahav - Web & Software defeloper.
|
|
|
|
|
|
Hi friends,
I am in a problem like i want to upload an audio and video files and play that files in my page...can anybody suggest me about how easily,effective way to do that.i read that there may be memory problem while uploading these big files...friends..i am a beginner so i need ur suggestions and help..
regards
alex.
|
|
|
|
|
swf upload is a mulitple file upload tool based on flash a javascript
ini_set("max_upload_size", "50M"); // i think - 50 MB - in php - there will be equivalent in asp. Change to larger value if needed.
tizag has a good file upload tutorial.
you may also need to edit "max_execution_time"
|
|
|
|
|
where will i get tizag upload tutorial.can u help me
|
|
|
|
|
|
Hi All,
I am creating a php website hosted on IIS5.1. The IIS is hosted on MachineA (Ip Address 90.0.0.20), which also happens to be the development machine . When I check with the url http://localhost/MachineA/MyWebsite or http://90.0.0.20/MachineA/MyWebsite, it works fine on my machine (MachineA). However when I try to access the same url from any other machine, say MachineB or MachineC(Ip address 90.0.0.21), which too, happens to be on the same LAN, I am not able to access the same. It says "The page cannot be displayed". It not only happens with the PHP hosted website, but the same happens with the ASP website also. The same not only happens with MachineB but with all the machines which are on the same network. I am easily able to access theses each and every machine via explorer from MachineA
Am I missing something?? Is there anything which is blocking the smooth access??
Please help.
Thanking you all in Advance
Regards
Pratik Shah
modified on Monday, April 6, 2009 2:17 AM
|
|
|
|
|
Check your firewall allows access through port 80 (http) and 443 (https).
|
|
|
|
|
Hi all
i would like to write an on click/submit event on a button and im doing it like this
<form name="form1" action="" method="post">
<input type="button" name="mybutton" onclick="<?php print "my Test"; ?>";
form1.submit()">
</form>
i know onclick is a javascript function,does anyone know what's the equivalent in PHP.
Regards
|
|
|
|
|
JavaScript runs at the client side, where the button is.
PHP runs at the server, and is unaware of someone clicking a button at the client side.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Right, basically there is no equivalent.
PHP runs before the client sees the web page and only on the server. Javascript/VB run on the client side (browser) after the page has been processed by the PHP. That is why it is called PHP Hypertext Pre-processor.
|
|
|
|
|
<?php if($_POST['submit']){
echo "form submitted";
} ?>
<div id="mydiv">This is a div contents</div>
<form name="form1" action="" method="post">
<input type="button" name="mybutton" id="mybutton" onclick="document.getElementById('mydiv').innerHTML = 'my Test'" value="fill div" />
<input type="submit" value="submit" name="submit" />
</form>
The above code shows the difference between javascript & php. Javascript works on the page on the client side ("fill div" btn does not refresh the page). When you "submit" the form the contents of it are sent to the server. There the server sees that a form has been submitted and formats the page as required ( here it writes "form submitted to the beginning of the body text before sending it back to the client).
|
|
|
|
|
HI, how do I force the submit of a form in Perl?
I wanna make a script that sends data, through "form style", without the "click-submition-button" part
|
|
|
|
|
|
|
|
Cool. I'll have to give it a go.
|
|
|
|
|
The adaptive compilation is pretty good and improves speed on my apps (subjective!)
Cheers,
|
|
|
|
|
Hi friends,
I am a beginner in php...i am in a problem.i have to use forums in my project..i haven't get any idea
how to do this..is there any third party tool or something like that for this..or we have to code ourown way..can anybody help me or suggest me for this...i need your sincere help....
regards
alex.
|
|
|
|
|
phpBB[^] is a free php-based forum software that you (should) be able to download and install in a few seconds...
|
|
|
|
|
THANKS I WILL CHECK IF IT WORKS FOR ME OR NOT
|
|
|
|
|
Hi..i downloded phpbb3 in my pc..still i have a problem..i can't integrate that with my project..do u have anyidea about how phpbb3 is installed or implemented in our own websites..help me...
thanks in advance.
|
|
|
|