 |
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
| |
11-17-2003, 09:36 PM
|
· #1 | | NamePros Regular Join Date: Feb 2003
Posts: 921
NP$: 186.00 ( Donate)
| Email Submit Form |
| |
11-18-2003, 04:37 AM
|
· #2 | | ....what? Location: Ontario, Canada Join Date: Aug 2003
Posts: 101
NP$: 171.00 ( Donate)
| 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?
|
| |
11-18-2003, 06:55 AM
|
· #3 | | NamePros Member | 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
|
| |
11-18-2003, 07:10 AM
|
· #4 | | NamePros Member | 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
|
| |
11-18-2003, 07:55 AM
|
· #5 | | NamePros Regular Join Date: Feb 2003
Posts: 921
NP$: 186.00 ( Donate)
| I am working on it |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |