Say I have a order form ending with:
<input TYPE="SUBMIT" VALUE="Submit Form"> <input TYPE="RESET" VALUE="Reset Form">
Where is it being sent to? I can't find the right spot to edit it.
| SitePoint Sponsor |
Say I have a order form ending with:
<input TYPE="SUBMIT" VALUE="Submit Form"> <input TYPE="RESET" VALUE="Reset Form">
Where is it being sent to? I can't find the right spot to edit it.





You can edit it at the beginning, the submit buttons don't have anything to do with where the information is sent.
For the start of your order form, you should have something like:
<FORM ACTION = "/cgi-sys/formmail.pl" METHOD = "POST">
And then directly below it, a hidden attribute such as:
<input type=hidden name="recipient" value="yourname@youremail.com">
which will tell the formmail.pl to send the information to the specified email address.
Hope this helps!
Sparkie





Yeah, assuming you're using the traditional FormMail, then you'll just be using hidden fields. Took me awhile to learn how forms work too.
------------------
Chris Bowyer – chris@mycoding.com
MyCoding.com: Visit for Launch Notification!
DomainMailings.com: Who Says All The Good Ones Are Taken?
MovieForums.com: Talk About Your Favorite Flicks!




When you hit the Submit button, the contents of the form will be sent with a CGI, ASP, PHP or any other script with these capabilities. It will be sent to an address the maker of the page gives or to the email that is set in the script itself.
Most script ask to put this information on the page itself in the form of <input type="hidden" name="recipient" value="youremail@domain.com>
Christophe


My host uses FormMail for which I know nothing about.
How can I learn its capabilities?
I want to create forms with the end goal of placing a few different subject titles in the mail sent to me.
I would also like to control the format of the mail sent to me a little. Like seperating the input objects text into paragraphs.
Does the formMail do this? or am I needing something else?


<FORM ACTION="/cgi-sys/formmail.pl" METHOD="POST">
<INPUT type="hidden" name="recipient" value="steve@treelinestudio.com">
<INPUT type="hidden" name="subject" value="contest">
<INPUT type="hidden" name="title" value="contest">
<INPUT type="hidden" name="redirect" value="http://www.treelinestudio.com/thanks.html">
This is the code for my contest entry form on one of my sites using formmail.pl.
<FORM ACTION="" tells the browser where to find formail.pl on your server. METHOD="" Will almost always be POST.
<INPUT type="hidden" means what it sounds like this element of the form will be hidden from the user. Name="" what your defining next in value(name="subject" value="contest".
So if you wanted the subject line to be "hey I got an order $967,453.33 until I am a millionaire it would look like this
name="subject" Value="ey I got an order $967,453.33 until I am a millionaire".


Sorry to split this reply but my machine keeps crashing and I wanted to make sure you got that first part ASAP. As to making it look a little diffrent when you receive it, that depends mostly on what you use for your form (checkboxes, textareas, etc..) if you need some further help with setting up your forms ask your question on the list here or email me off list and I will do what I can to help you.
Steve C. McAusland


For more info on and how to use FormMail by Matt Wright, just go to http://www.worldwidemart.com/scripts/formmail.shtml.
Mike
Brain Bucket Magazine - Biker News, Views, and Event Coverage.



htmlgoodies.com has a good forum tutorial.
Professional PHP programing / Hosting
aim: downtoi3iz icq: 74637813


htmlgoodies has good tutorials on nearly everything:-)




Pending my visit to htmlgoodies it is necessary to add that
having your forms work properly during the site construction process is not the same thing as online. In most cases, it depends on the cgi bin of the host server as most of them have their own special procedures?
Bookmarks