|
Posted by shror on 08/15/07 07:57
On Aug 15, 10:33 am, Arjen <d...@mail.me> wrote:
> shror wrote:
> > Hi every body,
> > Please I need your help solving my php mail() function problem that
> > the code is appearing in the view source and I dont know whats the
> > problem where I am using another page tto test the php and its
> > executed very nice
>
> > The page have php code viewed :http://beachtoursegypt.com/booking-form.htm
> > where after submitting the form the data are sent to the confirmation
> > age where the php script lies there and its not executed
>
> > the page with the other php code example running is:http://beachtoursegypt.com/123.php
>
> We cant really help without seeing the code. If php is executing there
> might be trouble with the mail setup or your script may contain errors.
> mail() returns true or false on completion so try
>
> if(mail('','',''))
> {
> // confirm}
>
> else
> {
> // problem
>
> }
>
> --
> Arjenwww.arjenkarel.nl
I have tried your code and it gave me an error (//problem)
so what could be the problem now really am not sure whats wrong
you can check the page having the piece of code you gave me at this
link: http://beachtoursegypt.com/123.php
its code is here too:
<body>
<?php
$i=1;
while($i<=5)
{
echo "The number is " . $i . "<br />";
$i++;
}
if(mail('','',''))
{
// confirm
echo "confirm";
}
else
{
// problem
echo "error";
}
?>
</body>
thanks for your support
[Back to original message]
|