Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Ezilon Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 05-29-2006, 06:14 AM   #1 (permalink)
Contributing Member
 
Join Date: 05-18-06
Posts: 126
iTrader: 0 / 0%
Latest Blog:
None

mybluehair is liked by many
making forms do stuff

heres what I want to do.
I want to make a html form and it has a name, email address, username, and a comment feild.
after the user fills out the form and clicks the submit button it will email the user at his email address that he provided and say "Hello [name], blablabla" and in the [name] spot it will show the name that the user provided in the form, then last, it will send me a email and it will show the user's name that they filled in, and whatever was filled-in in there comment box.

im sure theres some way to do this, because ive seen it done before, and if anyone can tell me how that would really be helpfull to my site. thanks.
mybluehair is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 05-29-2006, 06:54 AM   #2 (permalink)
Inactive
 
Mrblogs's Avatar
 
Join Date: 03-29-06
Posts: 546
iTrader: 0 / 0%
Mrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really nice
Send a message via MSN to Mrblogs Send a message via Yahoo to Mrblogs
What server-side progamming script do you use?

PHP? ASP? or just CGI...?
Mrblogs is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-29-2006, 07:00 AM   #3 (permalink)
Inactive
 
Ohiosweetheart's Avatar
 
Join Date: 04-18-06
Location: NE Ohio
Posts: 1,350
iTrader: 0 / 0%
Latest Blog:
None

Ohiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest orderOhiosweetheart is a web professional of the highest order
I use email forms at http://www.mycontactform.com/index.php

I tried to use the one that comes with my hosting package and is installed with Fantastico, but all the emails came through with html tags and there was no way to get rid of them. so I went to the above site.
You create an html page, build your form (there's a form building wizard with your account), add a link on your site, and waa laa
Ohiosweetheart is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-29-2006, 03:57 PM   #4 (permalink)
Contributing Member
 
Join Date: 05-18-06
Posts: 126
iTrader: 0 / 0%
Latest Blog:
None

mybluehair is liked by many
Quote:
Originally Posted by Mrblogs
What server-side progamming script do you use?

PHP? ASP? or just CGI...?
php
mybluehair is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-29-2006, 04:49 PM   #5 (permalink)
SVB
Inactive
 
SVB's Avatar
 
Join Date: 10-13-03
Posts: 7,481
iTrader: 0 / 0%
Latest Blog:
None

SVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest order
Send a message via Yahoo to SVB
form.html:
<form method="POST" action="submit.php">
Name: <input type="TEXT" name="name">
Email: <input type="TEXT" name="email">
Username: <input type="TEXT" name="user">
Comment: <input type="TEXT" name="comment">
<input type="SUBMIT" name="Submit" value="ok">
</form>


submit.php:
$email = $HTTP_POST_VARS[email];
$address = "youremailemail@address.com";
$subject = "Form submitted";
$head = "From: $email\n";
reset ($HTTP_POST_VARS);
$body = "Web form submitted the following values:\n";
$subject2 = "Thank you"
$head2 = "From: yourwebsite.com";
$body2 = "Thanks blah blah";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $lbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($address, $subject, $body, $head); mail($email, $subject2, $body2, $head2); }


Something similar to that should work
SVB is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-04-2006, 06:41 AM   #6 (permalink)
Contributing Member
 
Join Date: 05-18-06
Posts: 126
iTrader: 0 / 0%
Latest Blog:
None

mybluehair is liked by many
Quote:
Originally Posted by Stephen Bradley
form.html:
<form method="POST" action="submit.php">
Name: <input type="TEXT" name="name">
Email: <input type="TEXT" name="email">
Username: <input type="TEXT" name="user">
Comment: <input type="TEXT" name="comment">
<input type="SUBMIT" name="Submit" value="ok">
</form>


submit.php:
$email = $HTTP_POST_VARS[email];
$address = "youremailemail@address.com";
$subject = "Form submitted";
$head = "From: $email\n";
reset ($HTTP_POST_VARS);
$body = "Web form submitted the following values:\n";
$subject2 = "Thank you"
$head2 = "From: yourwebsite.com";
$body2 = "Thanks blah blah";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $lbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($address, $subject, $body, $head); mail($email, $subject2, $body2, $head2); }


Something similar to that should work
thanks. also is there a way that the form can also, after the user clicks submit, it takes whatever they typed in for "name" and it edits a file on my site and adds there name to it? is there a way to do that?
mybluehair is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Forms Work Goldjobber Web Design Lobby 3 12-27-2007 09:18 AM
Win Free Stuff (DVDs & movie stuff) Julie Forum Lobby 0 04-30-2007 07:31 PM
Forms in IE Fusion Web Design Lobby 7 06-08-2004 02:55 PM
Forms Pipeline-Webdesign Coding Forum 3 02-27-2004 08:57 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 11:40 PM.
© Copyright 2008 V7 Inc