8/8/11

////

Creating a Form (Contact Us). Php

This time I'll know to share, how to make a website contact form ..! if we try on the website - a website on google many who use the contact forms to facilitate the arrivals of the website to contact the website directly. Okay I'll explain ..!
This is the picture above the form that has made ​​it happen like that ... First - this is the source of all his sql ..
- Struktur dari tabel `tb_contact_us`
--

CREATE TABLE IF NOT EXISTS `tb_contact_us` (
  `id_pesan` int(50) NOT NULL AUTO_INCREMENT,
  `nama` varchar(50) COLLATE latin1_general_ci NOT NULL,
  `email` varchar(50) COLLATE latin1_general_ci NOT NULL,
  `komentar` text COLLATE latin1_general_ci NOT NULL,
  PRIMARY KEY (`id_pesan`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=18 ;

So we first create code phpnya .. grab sampleconfig.php

Then we create a File formnya grab sample kontak.php










Kontak Kami

0 ) { echo '
    '; foreach($_SESSION['ERRMSG_ARR'] as $msg) { echo '
  • ',$msg,'
  • '; } echo '
'; unset($_SESSION['ERRMSG_ARR']); } ?>
Nama
Email
Komentar
Then we create a process .. because the logic when people fill out the form (form) will be stored and siproses didatabase. This is his process was. grab samplesave_contact.php Then If siuser successfully entering it will meridirect (lead) directly to teriamkasih.php Here is a source code terimakasih.php

Thank you Has to Contact Us

0 Reactions to this post

Add Comment

    Post a Comment