473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Creating a Contact Form

Expand|Select|Wrap|Line Numbers
  1. <form  name="dataform" onSubmit="return checkform();" action="contact.php" method="post" >

how to create this contact.php, how it works.
Jul 30 '08 #1
1 1044
geess
3
At first specify the requirements like username,email id,subject, msg (text area) design this using html and write php coding to connect with database to store the detail or email to admin .
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. include "connect.inc";
  3. $q="insert into tblnm values('$uname','$email','$sub','$msg')";
  4. $ex=mysql_query($q);
  5. if
  6. {
  7. echo "msg has been sent";
  8. }
  9. else
  10. {
  11. echo "not";
  12. }
  13. ?> 
  14.  

or
u can email to admin email id
using php email function
Expand|Select|Wrap|Line Numbers
  1. $q=mail('$email','$sub','$msg','$from');
Jul 30 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: makuchaku | last post by:
Hi all I'm facing a strange problem in C++ exceptions. If an error occurs in a class, throw() is used. But whenever that happens, the object is destroyed. In a nutshell, accessing the...
4
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: ...
5
by: TanBrae | last post by:
Hi all, I'm fairly new to creating web pages. My current site has a form that has not been working for some time. I've had several people try to fix it, but it still won't work. (long story,...
1
by: Gerhard | last post by:
How can I create a new contact in exchange server from a vb.net web application?
1
by: newguy99 | last post by:
hi everyone, i am very new to asp, i have a form page in which i am having issues creating the process page for it, can somone help me create it? here is my form: FORM name=form1...
1
by: rjbonn | last post by:
I'm setting up a contact list for a musician, who is about to release her first CD. She would like a contact list that can track the people she meets, who will be in various categories -- fans,...
3
by: John | last post by:
What is the easiest way to make the contact form show on the front page. Meaning on want to keep the front html page and when someone clicks on the contact us link the front page remains the same,...
2
by: Mintyman | last post by:
Hi, I have a need to create a table detailing the ID of all contacts and the last time they were contacted. This information is stored in 2 tables, 'contact' and 'activity' (ID in the 'contact'...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.