How to combine a contact form with both a html page and a php page?

I have been busting my balls trying to get a simple contact form to work, but everything I try has not been working out. So I need some help from you pro’s :wink:

Let’s say that I am using this: http://www.freecontactform.com/email_form.php contact form. And I wanna combine the php page and the html page into one page. How would I go about doing that?

Why do you want it combined on one page?

You have to think about what you’re doing, when you combine it on one page…

When a person hits “Email Form” button, if it posts back to the same page…

So the customer will think it’s broken and not working.

What do you want to happen, do you want it to display the same information all over again? or do you want it to say, “Your email has been send, you will be contacted shortly”

If you want the later to happen, it will require a little more code. Just a few If/then tags

But the quick and easy way, just add the HTML to the bottom of the PHP page after the last ?>

Yeah I want it to say “Your email has been sent” and all that. And I did try making it with an “if”, but since I am a newbie x 3, I broke it rather than fixed it.

Post your full effort, maybe we can fix it for you.

Thanks for wanting to help me topcoder :wink: But I found a work around. My issue was that I was going to use it for a cms called woflcms(just a simple thing I am trying to have some fun with). And this cms doesn’t create pages/files, so I had to upload some of the code manually and then afterwards I redirected to a “The email has been sent”-page from the php script. Not the ideal solution, but the result is somewhat the same.

Once again thanks for helping :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service