Eric Bohlman <ebohlman@earthlink.net> wrote in message news:<Xns94AC2141F5E81ebohlmanomsdevcom@130.133.1. 4>...[color=blue]
>
scoobyood@jace41.com (Jason) wrote in
> news:ed5ca32c.0403140030.6d8a2819@posting.google.c om:
>[color=green]
> > My server does support php, but I cannot get contact form to work.
> > Could use some help to see if any error in php code and appreciate
> > help in advance! Jason[/color]
>
> "Doesn't work" isn't a helpful description when you're asking someone to
> help you debug your code. You need to state in very specific terms both
> what you *want* to happen and what actually *is* happening.
>
> That said, the first thing that pops into my mind is that what does/doesn't
> get put into $_REQUEST is a matter of how PHP is configured, and therefore
> it's usually better to work directly with $_GET and/or $_POST.[/color]
My bad, was a sleepy head while typed my previous message and supposed
to give the details, instead of "doesn't work".
Okay let me try to explain: I already created three pages: index.htm
(contact form), sentform.php (check and validate whether fields are
filled and if validated it will redirect to contactsent.htm and email
message), and contactsent.htm (thank you).
As for php script, I got it from
http://www.thesitewizard.com/archive/phptutorial2.shtml
"if and elseif" codes function as validation to check if any field is
missing before proceed to next php code. If all fields aren't filled,
then this page will stop at this point. If all are filled then it
will proceed to next php instruction.
Once pass "if and elseif" codes, then "else" will submit email and
redirect to thank you page.
Okay, here's problem: I tested pages by filled all fields and
submitted, but it stopped at second page (sentform.php) and won't send
email and redirect to thank you page.
I'm not a php freak and I am assume it's "REQUEST" function's a
problem or entire php need to be recode. Hopefully I explained
clearly.
Jason