Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-12-2009, 03:12 PM Email Form Data
motivatingfator's Avatar
Experienced Talker

Latest Blog Post:
We Could Lose Our Freedom
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
Trades: 0
Hello,

I want to create a form that will email the containing data to an email address, without opening the senders default email client.

Thanks for your help..
motivatingfator is offline
Reply With Quote
View Public Profile Visit motivatingfator's homepage!
 
 
Register now for full access!
Old 03-12-2009, 03:47 PM Re: Email Form Data
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Sort of like the myway.com mailer?

Click on Email this Story

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-12-2009, 03:52 PM Re: Email Form Data
motivatingfator's Avatar
Experienced Talker

Latest Blog Post:
We Could Lose Our Freedom
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
Trades: 0
I have created some what of an application, and want the data submitted to my email after being filled out. Not just emailing a post - but similar in functionality I suppose
__________________
Richard Morrison - Blogger / Consultant
E-Mail:
Please login or register to view this content. Registration is FREE
Web Address:
Please login or register to view this content. Registration is FREE
motivatingfator is offline
Reply With Quote
View Public Profile Visit motivatingfator's homepage!
 
Old 03-12-2009, 04:12 PM Re: Email Form Data
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
You mean like this?
http://www.webmaster-talk.com/php-fo...le-emails.html

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-12-2009, 04:15 PM Re: Email Form Data
motivatingfator's Avatar
Experienced Talker

Latest Blog Post:
We Could Lose Our Freedom
Posts: 38
Name: Richard Morrison
Location: Lima, Ohio, USA
Trades: 0
thanks
__________________
Richard Morrison - Blogger / Consultant
E-Mail:
Please login or register to view this content. Registration is FREE
Web Address:
Please login or register to view this content. Registration is FREE
motivatingfator is offline
Reply With Quote
View Public Profile Visit motivatingfator's homepage!
 
Old 03-19-2009, 11:23 PM Re: Email Form Data
Banned

Posts: 1
Name: Ethan James
Trades: 0
I think this Html coding helps to u....
<HTML>
<form method="post">

Name:<br />
<input type="input" name="name"><br />
Email:<br />
<input type="input" name="email"><br /><br />
Department:<br />
<select name="department">
<option value="1">Email 1</option>
<option value="2">Email 2</option>
<option value="3">Email 3</option>
</select><br /><br />
Query:<br />
<textarea name="query">
</textarea><br /><br />
<input type="submit" value="Submit" name="submit">
</form>
</HTML>
ethanjames is offline
Reply With Quote
View Public Profile
 
Old 03-20-2009, 12:14 AM Re: Email Form Data
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
Originally Posted by ethanjames View Post
I think this Html coding helps to u....
<HTML>
<form method="post">

Name:<br />
<input type="input" name="name"><br />
Email:<br />
<input type="input" name="email"><br /><br />
Department:<br />
<select name="department">
<option value="1">Email 1</option>
<option value="2">Email 2</option>
<option value="3">Email 3</option>
</select><br /><br />
Query:<br />
<textarea name="query">
</textarea><br /><br />
<input type="submit" value="Submit" name="submit">
</form>
</HTML>
Thanks for the post, but that's the exact code that I wrote and gave to Him.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-20-2009, 02:18 PM Re: Email Form Data
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by stevej View Post
Thanks for the post, but that's the exact code that I wrote and gave to Him.

- Steve
We just don't get the same quality of copy and paste signature link spammers these days.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-20-2009, 06:16 PM Re: Email Form Data
Defies a Status

Posts: 1,606
Trades: 0
Quote:
We just don't get the same quality of copy and paste signature link spammers these days.
Chris you have scared all the really good copycats away.














btw: Keep up the good work.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 03-21-2009, 12:59 PM Re: Email Form Data
jrai's Avatar
Average Talker

Latest Blog Post:
Link Builders
Posts: 22
Name: Julean Rai
Location: NYC / UK / Europe
Trades: 0
I'm not sure what the above HTML is going to do but create a form that posts to nowhere...or am I missing something. It's got to 'post' to something, somewhere, and it's that 'something' that actually parses the information and decides what to do with it; i.e., submit it to a database, collect and format it to email to a specific email address or list of addresses, etc. What it sounds to me is that 'Fator wants that information emailed to him on submit. Kick me if I'm wrong.

You know, actually I use the same script for contact forms in all my sites. Free PHP script, readily available, probably better things out there now. It does exactly this. Just replace the emails with your own, and customize the form however you want it, save the code below as a PHP file called 'mail.php' or whatever, and then point your FORM tag to <form method="post" action="mail.php"> and you're done. Let me know if this is what you need:

PHP Code:
<?php 
# You can use this script to submit your forms or to receive orders by email.
$MailToAddress "you@yoursite.com"// your email address
$redirectURL "http://www.yoursite.com/success.shtml"// the URL of the thank you page.

# optional settings
$MailSubject "This Is My Subject!"// the subject of the email
$MailToCC "anotheryou@gmail.com"// CC (carbon copy) also send the email to this address (leave empty if you don't use it)
# in the $MailToCC field you can have more then one e-mail address like "a@yoursite.com, b@yoursite.com, c@yoursite.com"

# If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
# If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.

# If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name" 
# you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple> 
# you have to do the same with checkboxes

# This script was written by George A. & Calin S. from Web4Future.com
# There are no copyrights in the sent emails.

# SPAMASSASSIN RATING: 0.4

# DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ===================================================
# ver. 1.6.2
if (preg_match ("/".$_SERVER["SERVER_NAME"]."/i"$_SERVER["HTTP_REFERER"])) {
$w4fMessage "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body>";
if (
count($_GET) >0) {
    
reset($_GET);
    while(list(
$key$val) = each($_GET)) {
        
$GLOBALS[$key] = $val;
        if (
is_array($val)) { 
            
$w4fMessage .= "<b>$key:</b> ";
            foreach (
$val as $vala) { 
                
$vala =stripslashes($vala);
                
$w4fMessage .= "$vala, ";
            } 
            
$w4fMessage .= "<br>";
        }     
        else {
            
$val stripslashes($val);
            if ((
$key == "Submit") || ($key == "submit")) { }     
            else {     if (
$val == "") { $w4fMessage .= "$key: - <br>"; }
                    else { 
$w4fMessage .= "<b>$key:</b> $val<br>"; }
            }
        }
    } 
// end while
}//end if
else {
    
reset($_POST);
    while(list(
$key$val) = each($_POST)) {
        
$GLOBALS[$key] = $val;
        if (
is_array($val)) { 
            
$w4fMessage .= "<b>$key:</b> ";
            foreach (
$val as $vala) { 
                
$vala =stripslashes($vala);
                
$w4fMessage .= "$vala, ";
            } 
            
$w4fMessage .= "<br>";
        }     
        else {
            
$val stripslashes($val);
            if ((
$key == "Submit") || ($key == "submit")) { }     
            else {     if (
$val == "") { $w4fMessage .= "$key: - <br>"; }
                    else { 
$w4fMessage .= "<b>$key:</b> $val<br>"; }
            }
        }
    } 
// end while
    
}//end else
$w4fMessage "<font face=verdana size=2>".$w4fMessage."</font></body></html>";
if (!
$email) {$email "server@site.com";}
if (!
mail($MailToAddress$MailSubject$w4fMessage"From: $name <$email>\r\nReply-To: $name <$email>\r\nMessage-ID: <"md5(rand()."".time()) ."@"ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\nMIME-Version: 1.0\r\nX-Priority: 3\r\nX-Mailer: PHP/" phpversion()."\r\nX-MimeOLE: Produced By Web4Future Easiest Form2Mail v1.5\r\nBCc: $MailToCC\r\nContent-Type: text/html; charset=ISO-8859-1\r\nContent-Transfer-Encoding: 8bit\r\n")) { echo "Error sending e-mail!";}
else { 
header("Location: ".$redirectURL); }
} else { echo 
"<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";}
?>
Long post, but hope it helps! Let me know-
__________________
Jules Rai, REW, LLC |
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by jrai; 03-21-2009 at 01:04 PM..
jrai is offline
Reply With Quote
View Public Profile Visit jrai's homepage!
 
Old 03-21-2009, 01:06 PM Re: Email Form Data
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
Originally Posted by jrai View Post
I'm not sure what the above HTML is going to do but create a form that posts to nowhere...or am I missing something. It's got to 'post' to something, somewhere, and it's that 'something' that actually parses the information and decides what to do with it; i.e., submit it to a database, collect and format it to email to a specific email address or list of addresses, etc. What it sounds to me is that 'Fator wants that information emailed to him on submit. Kick me if I'm wrong.
Exactly. Pure HTML code cannot do anything on it's own. However, the link that was given to him in the first place contained HTML and PHP code, and it just happened that what the spammer posted was just the HTML code. If you go here, you will see the rest.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-21-2009, 01:51 PM Re: Email Form Data
jrai's Avatar
Average Talker

Latest Blog Post:
Link Builders
Posts: 22
Name: Julean Rai
Location: NYC / UK / Europe
Trades: 0
Ah, Steve. Got it; my mistake. Maybe the info could be useful for somebody else searching on the same topic, maybe?
__________________
Jules Rai, REW, LLC |
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jrai is offline
Reply With Quote
View Public Profile Visit jrai's homepage!
 
Old 03-21-2009, 06:26 PM Re: Email Form Data
Banned

Posts: 5
Name: kilo
Trades: 0
Did u solucionate ur problem?
pola777 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Email Form Data
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.57322 seconds with 12 queries