Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

input type=submit - beginner's question

This is a discussion on "input type=submit - beginner's question" within the Web Page Design section. This forum, and the thread "input type=submit - beginner's question are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 11th, 2006, 12:13
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
input type=submit - beginner's question

I'm trying to use such code:
Code: Select all
<form enctype="multipart/form-data">
<input type="file" name="uploaded_file" accept="application/msword, application/rtf" />
<input type="submit" value="Submit" name="Submit">
</form>
Where does the uploaded file go?
How to send it as an attachment to the specified e-mail address?

Please help! Need it urgently
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Aug 11th, 2006, 13:40
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

you need more in your form tag

look here...

http://cgi-lib.berkeley.edu/ex/fup.html

see if that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 11th, 2006, 14:39
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

Hi, PixelLuv. I haven't found the script on that page... I need a simple, tiny script! And I can't find one
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 11th, 2006, 14:41
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: input type=submit - beginner's question

http://www.celerondude.com/php-uploader-v6 is a pre built flexible PHP Uploader sscript that is free. And from what I know you can set accounts on it, give different people different levels of access etc. At the very least you could open its files up and learn by example.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Aug 11th, 2006, 14:48
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

sorry man.

im not so sure it is tiny. ive not done it in years... ala classic asp, but at the time it was a pain.

perhaps this should be in a different forum depending on what middle tier language your server uses?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Aug 11th, 2006, 14:53
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

Thank you moojoo and PixelLuv, yes you are right probably. I had to ask in php forum as I'm using php.
And I need something really small and simple without all those special features and advanced flexibility.
I expect it to be about 10 lines big - 10 lines maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Aug 11th, 2006, 15:00
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: input type=submit - beginner's question

PHP Uploaders are generally pretty small to do what you need to do, but I am no PHP Guru.. Wish I could help more.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Aug 11th, 2006, 15:01
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

how are you setting your expectations? did you see it b4?

its the server side stuff that is the issue with me.

btw. notice you listen to jazz. mmw is my favorite group these days. seen them three times.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Aug 11th, 2006, 15:31
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

http://www.h2bworkusa.eu/i/john+me.jpg
http://www.h2bworkusa.eu/i/billy+me.jpg
the guy who isn't mmw and is in the focus - me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Aug 11th, 2006, 15:41
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

i wanna look. but i am forbidden.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Aug 11th, 2006, 15:42
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

you draw very well btw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Aug 11th, 2006, 15:45
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

ups, don't know why... try to copy the address into the address bar of the browser (it works)
thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Aug 11th, 2006, 16:46
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

It's not quite as simple as I think you were hoping if you are going to do it right.

Not only does your form need to have the necessary fields and info so that it knows it can expect files as well as other data, your php code needs to be able to construct an email with attachments, which is what the file will become.

I have placed my template file for this sort of thing here
http://1ontheweb.net/downloads/mailout.txt

Have a look through, CAREFULLY, modify to suit your requiements.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Aug 11th, 2006, 17:06
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

Hello, ukgeoff, yes i've realized it isn't all that simple
The HTML part is clear for me. But I can't find a proper php handler - most of things are tooooo complecated. The scripts advertised on the net are full functionality software rather than small bits of code for very particular tasks.
I need a script to pick up an MsWord doc and send it to e-mail as an attachment. This is to let people upload there CVs on our job site and get them sent to our work e-mails.
Unfortunately i'm unable to write such code myself...
Keep looking
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Aug 11th, 2006, 17:09
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Re: input type=submit - beginner's question

i purchased one when i had to do that. worked a charm.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #