Nov 22, 2009
Pages: 1, 2

Feedback Form Into Your Web-page

free web hosting

Read Latest Entries..: (Post #13) by bunnidelight on Jul 25 2006, 05:49 AM.
Is there one for umm HTML???
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > Tutorials

Feedback Form Into Your Web-page

tempest
Hello! I run pass some tutorial here and saw, that here isn`t normal tutorial for simple feedback (contact) form! So, I`m going to write one here! Let`s start:

CODE
<table width="400" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><strong>Contact Form </strong></td>
</tr>
</table>

<table width="400" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><form name="form1" method="post" action="send_contact.php">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="16%">Subject</td>
<td width="2%">:</td>
<td width="82%"><input name="subject" type="text" id="subject" size="50"></td>
</tr>
<tr>
<td>Detail</td>
<td>:</td>
<td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td>
</tr>
<tr>
<td>Name</td>
<td>:</td>
<td><input name="name" type="text" id="name" size="50"></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><input name="customer_mail" type="text" id="customer_mail" size="50"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>


Paste this code into Notepad and save it as contact.php . That`s the first step! Ofcourse you can change all the questions or add some!

Next step is to creat in-comeing form, so here is code for it -

CODE
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$detail";

// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";

// Enter your email address
$to ='someone@somewhere.com';

$send_contact=mail($to,$subject,$message,$header);

// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>



Save it as send_contact.php There is something more, that you need to do, so find // Enter your email address
$to ='someone@somewhere.com';
in second code and change someone@somewhere.com to your e-mail! In my mind that got to work!

http://tempest.trap17.com/contact.php - that`s how it looks for me!

 

 

 


Comment/Reply (w/o sign-up)

nashmou
thx, now i know how i can do it.

Comment/Reply (w/o sign-up)

Hadi
Thank you for this tutorial you can make a small code that verifies if the email is in the correct form for example: Email must be in this form : something@domain.com And everyone who enters an email not in this format, then that message will comeup. Now the problem is that I don't know what is this code, but I think you can find it by googling.

Comment/Reply (w/o sign-up)

Sprnknwn
Thanks, itīs basic but I appreciate it, since the ones Iīve done are just made by copying and replacing things. Hopefully this will help me to understand things.

Comment/Reply (w/o sign-up)

tphilakone
thank you very much

Comment/Reply (w/o sign-up)

grimmy
thats nice but im sure ive seen that code somwhere

Comment/Reply (w/o sign-up)

NeOniX
Well, i did something similar, but definately decided not to send to an email address, cuz it sometimes went to Spam folder, or strange things, my Feedback Form (wroted weeks ago) putted the output into an html file so you could read it wherever you want, if it's on a pub server.

Here is the topic of my tutorial.

Comment/Reply (w/o sign-up)

Dooga
That's nice! I don't really like using the complicated form.phps that you can find in hotscripts.com or something. However, it doesn't seem like it has validation. Validation should be easy, just have something like
CODE

if ($message=='') {
echo "You didn't fill out the message";
}

Comment/Reply (w/o sign-up)

vicviqbe
Hello, I need a form to send e-mails, but that is not created in PHP, but I need it for JSP.

It would thank for the aid to them that can offer me, since it is necessary for a project of the university.

Comment/Reply (w/o sign-up)

Florisjuh
Your script is okay but it lacks any kind of verification or security, so don't use this for any companny website becuase you'll easiliy be spammed to hell :>

Comment/Reply (w/o sign-up)

Latest Entries

bunnidelight
Is there one for umm HTML??? huh.gif

Comment/Reply (w/o sign-up)

pandacakes
Oh, thanks for that script! I've been looking for something simple like that for a long time. Every script I found through Google was so dang complicated! Thanks! smile.gif

Comment/Reply (w/o sign-up)

delivi
thanks dude for the codings. This was helpful.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : Feedback Web


    Looking for feedback, form, web, page

Searching Video's for feedback, form, web, page
See Also,
advertisement


Feedback Form Into Your Web-page

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com