ing wrote:
>
>>>>
>>>> Nothing _at all_? Do you mean that the PHP script that is the form action is
>>>> never invoked?
>>>
>>> Probably not. Nothing apears to happen. No email arrives.
>>>
>>
>> It does invoke the script. However what happens after that is anyone's
>> guess as we can't see your php. If you leave all fields blank with
>> Chrome you get the error message, 'text field is empty', which is
>> generated by send_dj.php.
That is because the only error handling the OP is doing is making the
script die. I listed what he needed to do in post:
<http://groups.google.com/group/alt.html/msg/e88015a2452e2288>
>
>
> I didn't get ANY error message. And my PHP script was in the original
> posting. I have duplicated below. Thanks.
>
> <?php
> //--------------------------Set these
> paramaters--------------------------
>
> // Subject of email sent to you.
> $subject = 'DJ';
>
> // Your email address. This is where the form information will be
> sent.
> $emailadd = '';
>
> // Where to redirect after form is processed.
> $url = 'Thank you.htm';
>
> // Makes all fields required. If set to '1' no field can not be empty.
> If set to '0' any or all fields can be empty.
> $req = '1';
>
> // --------------------------Do not edit below this
> line--------------------------
> $text = "Results from form:\n\n";
> $space = ' ';
> $line = '
> ';
> foreach ($_POST as $key => $value)
> {
> if ($req == '1')
> {
> if ($value == '')
> {echo "$key is empty";die;}
This is NOT effective error handling in a production script.
> }
> $j = strlen($key);
> if ($j>= 20)
> {echo "Name of form element $key cannot be longer than 20
> characters";die;}
> $j = 20 - $j;
> for ($i = 1; $i<= $j; $i++)
> {$space .= ' ';}
> $value = str_replace('\n', "$line", $value);
> $conc = "{$key}:$space{$value}$line";
> $text .= $conc;
> $space = ' ';
> }
> mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
> echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
> ?>
>
> The last line has since been replaced as per Jonathon's suggestion.
Then why are you show that meta tag hack instead of the header command
that I showed you?
header("Location: $url");
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com