adding file attachment area in form.
Wondering if anyone can tell me how to add an "file attachment area" in a form. I would like to have customer fill out the form with their information then attach a logo and photo, hit SUBMIT and have attachements emailed to me along with form information.
I am somewhat new to form creation, have created a few simple ones.
Thanks
HostingDiva posted this at 17:12 — 31st July 2003.
They have: 3 posts
Joined: Jul 2003
I use a script called formmailX to do this. I found it online for free, but when I looked for a link to send you I had no luck finding it again.
I did come across this, maybe it will help: http://obiewebsite.sourceforge.net/o.php?Form_to_email_with_attachment
Angela
Awesome Hosting
[url=http://
www.hostingdiva.com]HostingDiva[/url]
Ask me about a free reseller program!
Suzanne posted this at 17:24 — 31st July 2003.
She has: 5,507 posts
Joined: Feb 2000
with file uploads (search hotscripts.com for any number of available ones), essentially you use this:
and make sure your tag has the right attributes in it:
That will get the information from the user and give it to your script. From there, you need to store it, process it, list it in a database, whatever you want to do.
dplgnr posted this at 18:40 — 31st July 2003.
They have: 3 posts
Joined: Jul 2003
Thank you HostingDiva
I like what I saw. will give it a try.
dplgnr posted this at 20:02 — 1st August 2003.
They have: 3 posts
Joined: Jul 2003
I have tried Suzanne's tip.
I think I may be close but....
I get this message when I tested it.
No email was sent due to an error.
200 No variable substitutions in template.
Not sure what is going wrong.
Here is what I have so far:
Untitled Document
Name:
Title:
Office#:
Direct#:
Cell#:
Fax#:
Address:
City:
State:
Zip:
Email Address:
Quantity Ordered:
Suzanne posted this at 21:43 — 1st August 2003.
She has: 5,507 posts
Joined: Feb 2000
Well, .txt isn't an executable file... That's going to be the biggest problem.
Variables are the same as the name for the field. So you would have varables like: $State and $Zip.
What are you doing with them? They need to be "handled" by the script. This script needs to be in Perl if you're using the Cgi-Bin (well, not necessarily, but assume it does), and can also be in PHP, ASP, Java or ColdFusion.
What programming languages do you have available on your server?
ShaneS posted this at 14:15 — 4th August 2003.
They have: 93 posts
Joined: Jun 2003
Carefull Suzanne,
Seeing is he is a rookie to this, adn Im not sure which language your referencing, but $State and $Zip will only work if certain php.ini settings are enabled, beive it is registared_globals. Otherwise the would be from $_GET['fieldname'] or $_POST['fieldname'] depending on the form method used, and "POST" is recommened and needed for files.
For CGI using Perl, forms are parsed with STDIN statement that uses perls standard input to process the forms (this could be wrong, as I have not touched perl since I learned PHP)
As for ASP, I am not sure, I should be since I learned VB and have a degree with it as my primary language, but this Windows baby grew up on Linux on the Internet, so I actually suck with Windows stuff on the net. You will have to research or get someone to help with the ASP.
There there are the OTHER options...JSP, CFM, Java....
[Design Alpha] -Web Services : Design,Hosting,Advertising,Software
Ask about custom pricing on hosting!!
Site Assets: [UltraGaming.com] [Blades of Warcraft]
red_ghost posted this at 14:16 — 4th August 2003.
They have: 26 posts
Joined: Aug 2003
You've created the basic form for the user interaction, now you need to use a programming lanuguage to perform the action of storing and sending. Where are you storing all of the user's files?
http://salemspark.com
http://Flipsource.net
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.