Sublime directory Surf the web anonymous Pagerank Monitor


PHP source code behind "http://www.finalwebsites.com/contact.php"

rochk
Fri 2 June 2006, 06:33 pm GMT +0200
Hi Everybody!

I will probably will not get the answer (read the intro topic to that forum: no complete source code) but anyhow - I will try... :)

I am about to create the web page for my 58 years old father who decided at that age to start his own business... Crazy in my opinion - but that's my father. I have some general idea about XHTML and CSS - but I am a complete greenhorn when it comes to PHP. I would like to see the PHP source code behind the contact form on that page: http://www.finalwebsites.com/contact.php. I love how it works, how it informs you about missing data and how it behaves after the message has been sent. The fields in the form suit perfectly my needs (my father has no idea what are his needs in that field...). So, if anyone can tell me how to write something (or rather: exactly) like that I will apreciate this very much. Please, do not tell me to search internet for free scripts for contact forms - I have done it and I have not found anything, which would be similiar to the page I am referencing to.

Take care,
/Roch

Nikolas
Fri 2 June 2006, 07:17 pm GMT +0200
This form is like almost any other contact form.

The difference is that it has the validation code field right? Or am I missing something?

To create this form you will need some basic HTML knowledge, and use a class like phpmailer for the mailings.

If you need further assistance, you can keep posting here untill you find what you want.

BTW it is never too late to make your dream Roch, so I am with your father's side :)

olaf
Fri 2 June 2006, 10:01 pm GMT +0200
Like Nick told you check the html from the form and use this snippets:
http://www.finalwebsites.com/snippets.php?id=27
http://www.finalwebsites.com/snippets.php?id=19
http://www.finalwebsites.com/snippets.php?id=39
http://www.finalwebsites.com/snippets.php?id=24
http://www.finalwebsites.com/snippets.php?id=3
:)

rochk
Fri 2 June 2006, 11:34 pm GMT +0200
thank you.

:) I hope that you only want me to make some php exercises before you will share the full source code of the page... Because I will never put all this snippets together on my own... :)

I am also sure that you are cheating me a little bit. Composing contact form from the snippets you listed above will probably not work in the way that "http://www.finalwebsites.com/contact.php" works. The last snippet reguires so called 'thank you' page. The page I am referencing to is a single page (contact.php) and handles all 'successful' and 'unsuccessful' messages regarding sending the contact mail. Am I right?

/rochk

olaf
Sat 3 June 2006, 08:37 am GMT +0200
I will never share my own source code ;)

But we are here to help you. Start with the formmail script and place the form here at the forum.

About your last question, its only the header("Location:.. part that its different

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional