[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 11-17-2003, 09:36 PM   · #1
food_consult
NamePros Regular
 
food_consult's Avatar
 
Trader Rating: (6)
Join Date: Feb 2003
Posts: 921
NP$: 186.00 (Donate)
food_consult is on a distinguished road
Email Submit Form

I made the form and now need help creating the coding to have people submit thier info to me via email

http://www.stctrade.com/item_information.htm

Please help I don't know how to do this?!


Please register or log-in into NamePros to hide ads
food_consult is offline   Reply With Quote
Old 11-18-2003, 04:37 AM   · #2
Mp)Tarh
....what?
 
Mp)Tarh's Avatar
 
Location: Ontario, Canada
Trader Rating: (0)
Join Date: Aug 2003
Posts: 101
NP$: 171.00 (Donate)
Mp)Tarh is an unknown quantity at this point
If you are on a Microsoft server you can use ASP.

Can you support it?

Also, if you do, I need to know a few things first.
Are the e-mails coming from a fixed address? The user's own address?
Where are they going, do you get it from a form, what are the form item's named?
Are you using POST or GET?

Please get back to me on this, I'll see what I can do.
Don't forget, include EVERY little detail, including the names of the form fields!
__________________
Yeah... I knew that. What?
Mp)Tarh is offline   Reply With Quote
Old 11-18-2003, 06:55 AM   · #3
NetButch
NamePros Member
 
NetButch's Avatar
 
Trader Rating: (0)
Join Date: Nov 2003
Posts: 39
NP$: 64.00 (Donate)
NetButch is an unknown quantity at this point
I see in your source tags you are using Front Page.. well, why not use Front Page to make the form for you with the submit button?

if you dont want to do that.. give me a few to get together a proper reply.
__________________
NetButch ... Catch Your Audience!
www.netbutch.com
NetButch is offline   Reply With Quote
Old 11-18-2003, 07:10 AM   · #4
NetButch
NamePros Member
 
NetButch's Avatar
 
Trader Rating: (0)
Join Date: Nov 2003
Posts: 39
NP$: 64.00 (Donate)
NetButch is an unknown quantity at this point
Here is a simple form with no headings or anything, just input boxes/selections.. you have that figured out already, so no problem there..

notice in the first line the action argument.. this calls another file named success.php, this is a simple page with the php code to send an Email... simply put all the variables you have created in your form (subject, app_date, time, ampm are examples in this code) into the php mail() function. I included the php code at the bottom of this post.

<form name="feedback" method="POST" action="success.php">

<select name="subject" size="1">
<option selected value="Appointment">Appointment</option>
<option value="Services">Services</option>
<option value="Website">Web Site</option>
<option value="Other">(Other)</option>
</select>

<input type="text" size="26" maxlength="256" name="SubjectOther">

<input type="text" name="app_date" size="12">

<input type="text" name="time" size="8">

<select size="1" name="ampm">
<option selected>AM</option>
<option>PM</option>
</select>

<input type="submit" value="Submit Comments">
<input type="reset" value="Clear Form"></p>

THESE LAST TWO LINES ARE THE SUBMIT AND RESET BUTTONS

HERE IS THE PHP syntax
<?php

mail("recepient@domain.com","subject line here","body of message here");

?>

again you can use all the variable you made in your form as part of your "body of mesage", just remember to put a $ in front of the variable when using it in php code.
__________________
NetButch ... Catch Your Audience!
www.netbutch.com
NetButch is offline   Reply With Quote
Old 11-18-2003, 07:55 AM   · #5
food_consult
NamePros Regular
 
food_consult's Avatar
 
Trader Rating: (6)
Join Date: Feb 2003
Posts: 921
NP$: 186.00 (Donate)
food_consult is on a distinguished road
I am working on it
food_consult is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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
Forum Jump


Site Sponsors
Website Header Design Hunting Moon RealTechNetwork
Advertise your business at NamePros
All times are GMT -7. The time now is 10:08 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0