tempest
Jul 5 2006, 09:05 AM
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> </td> <td> </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!
Reply
nashmou
Jul 5 2006, 11:54 AM
thx, now i know how i can do it.
Reply
Hadi
Jul 5 2006, 12:24 PM
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.
Reply
Sprnknwn
Jul 5 2006, 02:07 PM
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.
Reply
tphilakone
Jul 5 2006, 03:16 PM
thank you very much
Reply
grimmy
Jul 5 2006, 04:13 PM
thats nice but im sure ive seen that code somwhere
Reply
NeOniX
Jul 7 2006, 06:39 AM
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.
Reply
Dooga
Jul 7 2006, 09:16 AM
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"; }
Reply
vicviqbe
Jul 18 2006, 04:01 PM
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.
Reply
Florisjuh
Jul 19 2006, 01:55 PM
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 :>
Reply
Latest Entries
bunnidelight
Jul 25 2006, 05:49 AM
Is there one for umm HTML???
Reply
pandacakes
Jul 19 2006, 08:08 PM
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!
Reply
delivi
Jul 19 2006, 07:36 PM
thanks dude for the codings. This was helpful.
Reply
Similar Topics
Keywords : feedback, form, web, page
- Vb 2008 Linking To Another Form..
(0)
Naming Web Page Files
Which way you like- MyPage.html or my-page.html or my_page.html (5) Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
am going to express my views and want to know what you think is correct. I have seen pages named in
various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
PHP Function To Add Previous and Next Page Feature
useful php function (0) CODE <?php function navigationbar($start_number = 0, $items_per_page = 50,
$count) { // Creates a navigation bar $current_page =
$_SERVER["PHP_SELF"]; if (($start_number < 0) ||
(! is_numeric($start_number))) { $start_number = 0; }
$navbar = ""; $prev_navbar = ""; $next_navbar =
""; if ($count > $items_per_page) { $nav_count = 0;
$pag....
Need Help To Increase The Page Rank Of Website!
(2) Hi everybody, I am dealing in online business and looking for some tips to increase the page rank of
my website. In this I need some helps from you people. Please suggest me some tips so that I can get
good traffic to my website and get more benefits. Your any suggestion will be highly appreciated.
Thanks in advance! ....
Adding Flash Music Player To Home/any Page
How-to (put any song you want!!!) (3) Want to put music on all pages (near the top)? Want any song you want? Well heres how! Place the
following IN PLACE of the tag (paste in while thats highlighted. The text in red you HAVE to
replace with the song url. The text in green is OPTIONAL (whether you want it to autostart or not.
Right now it doesnt, if you want it to replace no with yes.) Of course place this in Admin
Cp>>>Skinning and Styles>>>Board Wrappers>>>Header and Body QUOTE REPLACE THIS
WITH YOUR SONG URL &autoStart= no " /> src="http://www.podbean.com/podcast-au....
Page Load Error When Accessing Cpanel
(0) Not sure what the issue is. I cannot even load up any of the cpanel's to allow me to put in a
password. I have tried the link that is located in the Credit System 2.0 I have tried the links
with subdomain/cpanel I have tried the links with subdomain:2082 All 3 of these just give page
load errors. Please note : This isn't a "my password doesn't work" thread. This is a "I
can't even get cpanel to TRY to load" thread. Thanks in advance.....
How Do I Get Rid Of The Placeholder Page? [resolved]
(5) QUOTE Great Success ! Apache is working on your cPanel® and WHM™ Server If you can
see this page, then the people who manage this server have installed cPanel and WebHost Manager
(WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl)
successfully. They now have to add content to this directory and replace this placeholder page, or
else point the server at their real content. ATTENTION! If you are seeing this page instead of
the site you expected, please contact the administrator of the site involved. (Try sending ....
Application Form [approved]
(2) PRESENT CREDITS : HOSTING CREDITS : 37.65 Forum Username : Dhruv Display Username: Dhruv Email
Address:dhruvin_patel@hotmail.co.uk My request is for: HOSTING PACKAGE 1 Your Registered Domain
Name or Desired Trap17 Subdomain Name: tutorial-linker.trap17.com Introduce Yourself: Your hobbies,
interests, talents, etc. Let the forum know you better. • My name is Dhruvin. Hobbies: Girls, gaming
and computers. I have no talents I'm just a all rounder can do everything if i like biggrin.gif
.Live in United Kingdom. And am a student. Desired Hosting Account Username: 8....
How To Make An Item Scroll With You On The Page.
(9) ok im not sure where or how to really ask this... but you can find an example at
http://www.demonoid.com the ad that is on the right side scrolls with you basically to the bottom
of the page. I know they use an iframe but can you show me how that works or what makes it do that?
i tried to copy the source and css but it did not work.. any advice?....
My Minimalist Wordpress Theme
I need feedback (2) As the title says, it is minimalist, so don't expect fancy graphics and a stunningly beautiful
site. The theme is called 'MiniMoo', inspired by the use of Mootools 1.2 There is ajax
functionality for only paging. The only reason why not the entire theme is ajaxed is due to
analytical purposes. Have a play with it and do not hesitate to let me know what you think:
http://limetouch.com/archives/minimoo-mini...ordpress-theme/ ....
New Sig
Please give feedback (2) ....
New Guy Here
Give me feedback (0) Newest-Oldest ....
First Design Feedback
(18) This is my first 'kinda good' design. Just wondering what you think.
http://www.unitedserverhosting.net/radio It will expand slowly with links and other pages. I am
thinking something like -Home -Radio -News -Discussion -Sponsors Feedback please, I know that it
isn't great, it is my first. But for its purpose it looks ok. /biggrin.gif"
style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
Gahhh This Isn't Going Well Please Help!
It's a forgot password form in php! (12) CODE <? // database connection details stored here include "database.php"; ?>
<!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head>
<title>Thanks!</title> </head> <body bgcolor="#ffffff"
text="#000000"> <? $email=mysql_real_escape_string($email);
$status = "OK"; $msg=""; //error_reporting(E_ERROR | E_PARSE |
E_CORE_ERROR); if (!stristr($email,"@") OR !stristr(....
What Is Your Home Or Start Page?
(14) I've had Yahoo! as my start page for many years. I'm wondering if there's a better
start page out there. I remember using Excite several years ago, but their home page now looks
outdated. Do you design your own start pages? If so, what's on it?....
Html Form!
Using MySQL?! (4) Hey, I need your help again! I need some good working tutorial how I can update my SQL through
HTML form. I did use some tutorials online found with the help of google; but they do not work
properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
should be based on security and more things. It has to be done in proper way.......
How To Make Form Nested In Internet Explorer ?
Nested form in IE (2) I want to make a form nested in another form, it's run on Opera and FireFox but it's occur
error in IE How can I make form f2 submit by using javscript ??? (I want to solve this
problem because my website using Ajax upload....
Create Page?
How? (11) Hi, everyone! I need to create a script just within a page. Read the following story: I have
an account at one of file sharing hosts. I am tired of every time log in and tell others what I have
at it (files). If there is way to create a script that logs in me and just list the files i have
on this account from specified folder. If you know, let me know as usual.....
Create A Google Seach Result Page Embed Within Your Site Page.
(12) Create a google seach result page embed within your site page. It is easier to create
web page that embeded the google search result in it. The first step is to go to google apply an
account for the google ad-sense. After that login to you account and choose the create ad-seach
option. Most of time the google search box give all we have the great and powerfull seach ability.
But, have you think every time users get seach with it. They do redirected to another page that is
not within you site. It is easier to create web page that embeded the google sea....
Error Code In Subscriptions Page
problems subscribing to topics (5) I'm seeing some weird warning message show up at the top of my page when I go into "my
controls," then load my topic subscriptions page. At the top of the page, the following code appears
several times: IPB WARNING in_array() : Wrong datatype for second argument (Line: 2711 of
/sources/action_public/usercp.php) I'm guessing maybe that has something to do with the fact
I'm having problems subscribing to my topics and posts? Thanks in advance for your help.....
Scrolling Images?
How to Make an Image Scroll With the Page (5) I'm trying to make my homepage look a little fancier and I've got a nice background image,
but I want it to scroll with my page, like if you scroll down the image will still appear like it
does on the top of the page. Can someone tell me how to do this? I'm using Microsoft Frontpage
to edit it. I'm not sure what programming language this would be, probably CSS or Javascript,
but I can edit the page script with Notepad or something to make this work. Right now the page is
purely HTML, so whichever language this is, can somebody also give me the tags and ma....
Wap Source Code Viewer
Mobile/wap source code viewer page (4) This is a source code viewer that will workl on wap/mobile sites but you can easily convert it to
work on web im sure ;-) CODE <? header("Content-Type:
text/vnd.wap.wml"); echo '<?xml version="1.0"
encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head><meta
http-equiv="Cache-Control" content="no-cache"
forua="true"/></head> <card title="s60.nerds.....
Refresh Page After Back Button Hit
(11) Hi. I have a page that is dynamically build through DOM manipulation. So, when I browse outside the
page, and then click back, those dynamically created DOM objects are gone. Since I am also using JSP
/ Servlet technology, I can rebuild this page easily, which I have done. Here is my dilemma. If
the user leaves the dynamic page, then clicks back on their browser, I need the page they are going
back to to refresh. I can't figure out how to do this. I've tried using the META tag, but it
won't do it. Help would be appreciated. Thanks. ....
Loop Through Form
How do you do it? (8) In ASP you'd do this: CODE For Each Field in Request.Form So how do you do it in PHP? I
want to loop through a form, check to see if it has a value and if so, append to a string to send as
the body of my email.....
Form To Php Mail. Attachment
(14) i know there are a few topics talk about attachment problem, but i want to know if anyone could show
me a basic code for attaching files like pictures with the message. I made a html form, and
redirect the information to my mail.php file to process the information and send it to my email. I
want to know what do i have to do to attach files like pictures. I tried to search on google, and
the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
the code and explain to me what it does and how i could customize it to fit my needs?....
Open Php Page From Another Server
If a server does not support php (7) If web server does not have .php support and I want to put a guestbook or something similar (no
database), and there is no support for other server side scripting, what should I do? I would not
like frames on my page, but - is there a possibility to put .php page from another site into layer
on my webpage at the no-php-site? Does layer support (or any other html command, excluding frames)
page including from another server? Also, does anybody have a solution for this any other way? How
to make a guestbook without php, perl, other scripting languages? Or, how control (r....
Refresh Web Page
(6) Well this questioned wasnt answered in 2003 but hopefully somebody knows the answer, sorry if this
is a simple question but can i force the web browser to refresh the page after pressing the submit
button. Basically my cgi perl form copies a different jpeg with teh same name into my public_html
folder every time the form is submitted, therefore i have to click on the refresh button in IE to
see the different picture. I have tried Code: but it doesnt seem to work in IE6 ....
*** Click Here To Get Your Free Hosting ***
Trap17 Free Web Hosting Request Form - FILL OUT THIS FORM (1) Welcome to Trap17 Free Web Hosting. Before you start, read the Trap17 Readme . NOTE:
Trap17 is not like other forums where you can still survive without reading stickies. If you
don't read the Trap17 sticky you will NOT UNDERSTAND how to get hosting. Please take a few
minutes to do that now. Some more info: A NOTE TO NEW MEMBERS (those who haven't yet
participated in our forums) Before you post an application, You must participate in our forum and
collect "Hosting Credits". You earn "Hosting Credits" when you make a post. You should make good
genui....
Php Unique Hit Counter
Count page hits with php. (28) Hello all, Here is a neat and helpful PHP script that can count unique page views on your website.
First you need to open up a new page in your text editor and paste in this code. CODE <?php
$filename = "hits.txt"; $file = file($filename); $file =
array_unique($file); $hits = count($file); echo $hits; $fd
= fopen ($filename , "r"); $fstring = fread ($fd , filesize
($filename)); fclose($fd); $fd = fopen ($f....
Dreamweaver Or Front Page Or Other?
which's more professional & user-friendly (108) Dreamweaver is founded by Macromedia and Front page is founded by Microsoft. Both are used for
creating websites. Personally, I am using Dreamweaver MX, it is very user friendly and have great
support towards other Macromedia softwares like Flash and Fireworks. How about you, what kind of
software do you use to build your web?....
Looking for feedback, form, web, page
|
|
Searching Video's for feedback, form, web, page
|
advertisement
|
|