HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Feed Back Option ( Send Advice To E-mail By Click Submit )
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
Mr_Wanted



Joined: 22 Feb 2005
Posts: 11
Location: U.S.A.

PostPosted: Wed Apr 20, 2005 3:52 am     Feed Back Option ( Send Advice To E-mail By Click Submit ) Reply with quote

Question
Hi friends how are you all? I hope you all will be fine wherever you are.

Friends I need one help for Webpage, and I hope any one of you can help me.

The problem is I made one site for me in my site I made one Feed Back page there are 3 Input Fields and 1 Button.


1- Subject
2- Name
3- Text Box (for advice)
4- Submit Button


So what I need, I want when any person visit on my site and he/she write there Subject, Name and Advice. And when he click on [Submit Button] the information sends to my Hotmail or Yahoo E-mail ID, and my Home page will open in same window. And when I check my mail I will find his/her messing in my mail.

Some one told me this called SMTP I don’t know is right or no, but please tell me how I can do this.


Thank you for you attention and help.
Bye with best regard.


JAZ (Mr_Wanted)
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Wed Apr 20, 2005 4:15 am     Reply with quote

There are a few ways to process the form - like PHP, CGI, ASP, etc. Or you can use the "old" way with the mailto: submit style as well.

Do you know what your hosting company supports?
Mr_Wanted



Joined: 22 Feb 2005
Posts: 11
Location: U.S.A.

PostPosted: Wed Apr 20, 2005 8:29 am     Reply with quote

Exclamation
HI Friend! Thank you for your help, but please tell me some thing.

You mean for this function I need my hosting company helps, I can’t do this by my self; I have to tack permission for them, and they will now what I am receiving from other person?

But the problem I get free Hosting service and I don’t think they have this option in free Hosting service, let me check this thing.

And do I need e-mail ID from them also?

And what it calls this function?


Thank you for you attention and help.
Bye with best regard.


JAZ (Mr_Wanted)
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Wed Apr 20, 2005 8:35 am     Reply with quote

Some free hosting sites support CGI scripts for email purposes. You can also check out services like BraveNet
Mr_Wanted



Joined: 22 Feb 2005
Posts: 11
Location: U.S.A.

PostPosted: Wed Apr 20, 2005 10:26 pm     Reply with quote

Exclamation
HI Mr. Corey Bryant! Thank you ones again for your help,

I get two free hosting sites support CGI and PHP.

1- www.bravenet.com support PHP.
2- www.50megs.com Support CGI.

So I want to ask you, which one is good service PHP or CGI to receive feed back by e-mail, please advice me.
And I don’t know any thing about PHP and CGI how to create and use them, so please if you have time to help please tell me how I can make one of these things, and from where I have to start?


Thank you ones again for your and help.
Bye with best regard.


JAZ (Mr_Wanted)
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Thu Apr 21, 2005 3:59 am     Reply with quote

Both are fine - check out Simple Form Script
raphaelp



Joined: 21 Apr 2005
Posts: 48

PostPosted: Thu Apr 21, 2005 6:10 pm     Reply with quote

Hi Mr. Wanted,

If you do not know CGI/PHP I suggest having the form hosted by third-party provider such as my service, www.whiz-mail.cc, for example. There are also many other such services on the net, they are listed at http://cgi.resourceindex.com/Remotely_Hosted/Form_Processing/

How it works: you either upload or import your form to the service and configure the settings there. The service will then send you the results via E-Mail or however you configure it to (and based on the features the service supports, of course)

Hope this helps.

Best regards,

Raphael Pirker
Mr_Wanted



Joined: 22 Feb 2005
Posts: 11
Location: U.S.A.

PostPosted: Sat Apr 30, 2005 4:05 am     Reply with quote

Exclamation
Hi friends how are you all? I hope you all will be fine wherever you are.

Corey Bryant I got this file simplescript.php from that siet which u gave me link (Both are fine - check out Simple Form Script) and there is this Script i find.
-----------------------------------------------------------------------

// Simple Form Script
// Copyright (C) 2005 Eric Zhang
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Please send bugs/questions to erkzhatyahoo.com.

//--------------------------Set these paramaters--------------------------


$subject = 'Hello JAZ'; // Subject of email sent to you.
$emailadd = 'Mr_Wanted6athotmail.com'; // Your email address. This is where the form information will be sent.
$url = 'http://www.geocities.com/mr_wanted6/'; // Where to redirect after form is processed.
$req = '1'; // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.

// --------------------------Do not edit below this line--------------------------
$text = "Results from form:\n\n";
$space = ' ';
$line = '
';
foreach ($_POST as $key => $value)
{
if ($req == '1')
{
if ($value == '')
{echo "$key is empty";die;}
}
$j = strlen($key);
if ($j >= 20)
{echo "Name of form element $key cannot be longer than 20 characters";die;}
$j = 20 - $j;
for ($i = 1; $i <= $j; $i++)
{$space .= ' ';}
$value = str_replace('\n', "$line", $value);
$conc = "{$key}:$space{$value}$line";
$text .= $conc;
$space = ' ';
}
mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
?>

--------------------------------------------------------------------------
and i put this file in my site but not working can u tell me what is the problem in Script.

Thank you ones again for your and help.
Bye with best regard.


JAZ (Mr_Wanted)
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sat Apr 30, 2005 4:55 am     Reply with quote

Are you posting to this PHP file?
Mr_Wanted



Joined: 22 Feb 2005
Posts: 11
Location: U.S.A.

PostPosted: Sat Apr 30, 2005 10:45 pm     Reply with quote

Yes i save by MS Notepad as (feedback.php) and you can find this file on this site.

HTML Page link
http://www.geocities.com/mr_wanted6/feedback.htm

feedback.php file Link
http://www.geocities.com/mr_wanted6/feedback.php

Thank you for your help.
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sun May 01, 2005 5:43 am     Reply with quote

Check to see if Geocities supports the server side language - I do not think they do
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sun May 01, 2005 5:45 am     Reply with quote

Check out here - http://geocities.yahoo.com/ps/learn2/HowItWorks4_Free.html - to see what form processing method they support
Mr_Wanted



Joined: 22 Feb 2005
Posts: 11
Location: U.S.A.

PostPosted: Sun May 01, 2005 7:34 am     Reply with quote

hi tahnk you for you help

i alrady check all site for http://geocities.yahoo.com/ but i didnt get what service they have.

and i think u r right that they dont have PHP or CGI service in free account .

but tell me my PHP script is ok if u checked it ?

thaks you so much for help
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Sun May 01, 2005 8:48 am     Reply with quote

Sorry I really do not know that much PHP - it looks ok from what I can tell. We mainly handle ASP coding & I let my programmers take over any of the other PHP / ASP jobs
Samuel Jong



Joined: 06 Jan 2008
Posts: 86

PostPosted: Mon Mar 10, 2008 4:56 pm     Reply with quote

Corey Bryant wrote:
Both are fine - check out Simple Form Script

The link given didn't work.
I also want to make a simple feedback form, and my host support CGI scripts.

The simple feedback form:
1. Name
2. Email address
3. Description
4. Submit button

Can you help me? Thanks in advance.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial