|
Posted by shror on 02/22/07 17:51
On Feb 22, 5:34 pm, "Captain Paralytic" <paul_laut...@yahoo.com>
wrote:
> On 22 Feb, 15:22, "shror" <shahi...@gmail.com> wrote:
>
> > its written that the $additional_heders is the var that contain the
> > From, CC, Bcc stuff
> > and i did added to it these stuff but its not working
>
> True it is, but your code shows you supplying a $headder (SIC)
> variable in addition to a $from variable which certainly doesn't fit
> with the spec.
> Care to share precisely what you are putting in each of these
> variables?
Thank you so much, i got it.
but i have another problem other than this but its related to my forms
too :D
really am so sorry for being a source of headache.
its that i want to put an array so that when the form is submitted the
script Checks for the username added if its already in the array or
not,
if not in the array the mail is sent,
and if found in the array error message is echoed and mail() function
is neglected.
my first trial:
$name = array("first","second","third");
if ($user == $name)
echo "The username found please choose another one!";
else {
mail($to,$subject,$message,$from);
echo "Thank you";
}
this output is that the mail function is sent any way even if the
username is in the array
my second trial:
$name = array("first","second","third");
if ($user = $name)
echo "The username found please choose another one!";
else {
mail($to,$subject,$message,$from);
echo "Thank you";
}
in the if statement i used one = sign not == and it gives me the error
message even if the name is not in this array.
can you please tell me how i can solve this situation
Thanks anyway for your help Captain Paralytic
Navigation:
[Reply to this message]
|