php form help
- Started
- Last post
- 3 Responses
- airey
alrighty, i'm wanting to include a small form (name, email, msg) in a page which validates and then shows text to the effect of "your message hase been sent" in a small section of the page rather than having a entirely new page for the form and for the sent message.
i don't know where to start. i'm clueless in fact.
any help / info / solution appreciated. willing to pay for the service if need be.
thankyou!
- Kevin_Sweeney0
just put the mail() code in the actual form page and have it send only if a variable like $formSubmitted has been set and then display a message if it has been.
then for the form, set the action of the form equal to the page your on and include a hidden field named formSubmitted
or...you could try iframes, but i can't help you there, because anything with "frame" in the name pretty much turns me off.
- hiten0
forms dont work on dreamhost apparently.
- welded0
Kevin's first suggestion should work just fine. Sending main with PHP is really quite easy so it's a good exercise. And if need be I'm sure somebody could give you a hand - no need to worry about paying for such a small thing.
Good luck!