Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-18-2004, 01:07 PM   #1 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Lightbulb Grab a Data

Hello Geeks,

Well i am here to ask a question which i know is real simple for you, but i am a NOVICE so please help me, like wat i wanna do is that i want to make a webpage on to which if some one fills two-three text boxes then after clicking on a button the data which user entered should be mailed to me, Is this possible?

Please lemme know which language and if possible, please paste the code, rather..

Thanx a ton..
__________________
Realin Wuz here ...

real_in is offline  
Old 09-19-2004, 02:27 AM   #2 (permalink)
 
Monster Techie

Join Date: Nov 2002

Posts: 1,368

shan

Send a message via AIM to shan
Default

what kind of server are you running on? microsoft? linux? what language? php? asp? html? after that, it's just a few simple steps
__________________
<center><h2><font color=\"red\">C:\\ Is the root of all evil</font></h2>
<hr width=\"50%\">
phiber@sysdum.com
spam this account, it's fun.
shan is offline  
Old 09-23-2004, 10:53 PM   #3 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

that i what i wanted to know what language shall i use for that, gimmie a simple one, please lemme know???
__________________
Realin Wuz here ...

real_in is offline  
Old 09-24-2004, 04:08 AM   #4 (permalink)
 
Monster Techie

Join Date: Nov 2002

Posts: 1,368

shan

Send a message via AIM to shan
Default

This is a simple mail post that i made for a friend of mine..I built this in PHP
Page 1
PHP Code:


Please complete the following form to submit your email
.</center>
<
form action="mail.php" method="POST">
Name: <input type="text" name="name" size="20">

EMail Address: <input type="text" name="email" size="20"

</center>
Comments: <textarea name="comments" rows="5" cols="50"></textarea>
<
center>

<
input type="submit" name="submit" value="Send Mail">
</
center>
</
form
Page 2
PHP Code:
<?php
$to  
"you@you.com";

/* subject fields*/
$subject "Mail";
$from $_POST[name];
$email $_POST[email];
$comments $_POST[comments];
$ip getenv("REMOTE_ADDR");
$user getenv("HTTP_USER_AGENT");
/* message in html format */
$message "
<html>Name: $from


Email:$email


Comments: $comments

User IP Address: $ip


</html>"
;

$headers  "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Whatever address\r\n";
$headers .= "To: You <you@you.com>\r\n";
$headers .= "Name: $_POST[name]\r\n";
mail($to$subject$message$headers) or die("Can not send mail right now, please try later!");
?>
Your email has been sent

__________________
<center><h2><font color=\"red\">C:\\ Is the root of all evil</font></h2>
<hr width=\"50%\">
phiber@sysdum.com
spam this account, it's fun.
shan is offline  
Old 09-24-2004, 05:24 AM   #5 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

hey brother really thanx a lot, this would help me.. you rock.. thanx once again..
__________________
Realin Wuz here ...

real_in is offline  
Old 10-14-2004, 12:28 PM   #6 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

well guys... I am here again, the one who started this thread... Now what i have is, i have uploaded my website to http://tripod.lycos.co.uk and now what i wanted was to know if i can Grab that data from those text boxes... cause that webserver gives me sql database support also, it has Php coding supported.. please help me..

For jus an information, a guy here in this forum gave me a code from php, which creates a log file in the web directory of the IP addresses of the visitors visiting my Webpage..

Need your sincere Help..

Regards..
__________________
Realin Wuz here ...

real_in is offline  
Old 10-14-2004, 12:45 PM   #7 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

but guys lemme tell u that i donn have a mail server..
__________________
Realin Wuz here ...

real_in is offline  
Old 10-15-2004, 12:42 AM   #8 (permalink)
 
Super Techie

Join Date: Jun 2004

Posts: 312

sippin codeine

Send a message via Yahoo to sippin codeine
Default

I dont think you need a mail server for shans code, I also dont really know much about sql as i'm just getting around to PHP, but it should mail you the information in the text boxes. What exactly are you trying to do?
__________________
**[System specs]**

Delphi Enterprise 6 - 7
VB 6.0 - 2005 EE
sippin codeine is offline  
Old 10-17-2004, 02:01 PM   #9 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

hey sippin sorry for replying late in this thread,actually my ISp was down, well what i want is that a user enters some data in the textbox defined on a webpage and when he/she clicks the button behind that box, it simply sendds the data to my mail address and redirects the user to some other page,

Umm.. this is what the title of this thread is..
Grab a Data..

can you help me now..

regards
sachin!
__________________
Realin Wuz here ...

real_in is offline  
Old 10-17-2004, 04:49 PM   #10 (permalink)
 
Super Techie

Join Date: Jun 2004

Posts: 312

sippin codeine

Send a message via Yahoo to sippin codeine
Default

Quote:
Originally posted by real_in
hey sippin sorry for replying late in this thread,actually my ISp was down, well what i want is that a user enters some data in the textbox defined on a webpage and when he/she clicks the button behind that box, it simply sendds the data to my mail address and redirects the user to some other page,

Umm.. this is what the title of this thread is..
Grab a Data..

can you help me now..

regards
sachin!
Well, from what i can see, i think shans code does that.
__________________
**[System specs]**

Delphi Enterprise 6 - 7
VB 6.0 - 2005 EE
sippin codeine is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On