Re: How to process text from HTML form?
I noticed that Message-ID:
<MfBMc.96751$4G 3.39536@newssvr 29.news.prodigy .com> from deko contained
the following:
[color=blue]
>Perhaps I shouldn't have a separate script to send the message - can I merge
>send_mail.ph p into the form code on contact.php? Not sure this would solve
>the problem... which I'm sure is something elementary...[/color]
It is.
The action part of the form should be the location of the page the
results should be sent to. If you leave it blank it will simply refresh
the page. Your script is including the script in the action rather than
the location of the script.
Try:
<form method="POST" action=
"<?
if ( empty($_POST['message']) || empty($_POST['email_address']) )
{
}
else
{
echo "send_mail.php" ;
}
?>"
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
I noticed that Message-ID:
<MfBMc.96751$4G 3.39536@newssvr 29.news.prodigy .com> from deko contained
the following:
[color=blue]
>Perhaps I shouldn't have a separate script to send the message - can I merge
>send_mail.ph p into the form code on contact.php? Not sure this would solve
>the problem... which I'm sure is something elementary...[/color]
It is.
The action part of the form should be the location of the page the
results should be sent to. If you leave it blank it will simply refresh
the page. Your script is including the script in the action rather than
the location of the script.
Try:
<form method="POST" action=
"<?
if ( empty($_POST['message']) || empty($_POST['email_address']) )
{
}
else
{
echo "send_mail.php" ;
}
?>"
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Comment