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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 11th, 2006, 11:13
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
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
Reply With Quote

  #2 (permalink)  
Old Aug 11th, 2006, 12:40
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
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.
Reply With Quote
  #3 (permalink)  
Old Aug 11th, 2006, 13:39
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
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
Reply With Quote
  #4 (permalink)  
Old Aug 11th, 2006, 13:41
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old Aug 11th, 2006, 13:48
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
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?
Reply With Quote
  #6 (permalink)  
Old Aug 11th, 2006, 13:53
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
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
Reply With Quote
  #7 (permalink)  
Old Aug 11th, 2006, 14:00
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #8 (permalink)  
Old Aug 11th, 2006, 14:01
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
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.
Reply With Quote
  #9 (permalink)  
Old Aug 11th, 2006, 14:31
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
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
Reply With Quote
  #10 (permalink)  
Old Aug 11th, 2006, 14:41
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
Re: input type=submit - beginner's question

i wanna look. but i am forbidden.
Reply With Quote
  #11 (permalink)  
Old Aug 11th, 2006, 14:42
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
Re: input type=submit - beginner's question

you draw very well btw
Reply With Quote
  #12 (permalink)  
Old Aug 11th, 2006, 14:45
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
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.
Reply With Quote
  #13 (permalink)  
Old Aug 11th, 2006, 15:46
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
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.


Reply With Quote
  #14 (permalink)  
Old Aug 11th, 2006, 16:06
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
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
Reply With Quote
  #15 (permalink)  
Old Aug 11th, 2006, 16:09
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
Re: input type=submit - beginner's question

i purchased one when i had to do that. worked a charm.
Reply With Quote
  #16 (permalink)  
Old Aug 11th, 2006, 16:27
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
Re: input type=submit - beginner's question

Yes, we are buying some web software too but this problem came up very urgently. Doesn't matter we decided to leave it for now.

Have you seen the pictures? Can show you more (in fact I'm looking to share my joy with someone). Far away, in Vilnius, i've got to touch very cream of NY jazz (if i can put it this way )
Reply With Quote
  #17 (permalink)  
Old Aug 11th, 2006, 16:55
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
Re: input type=submit - beginner's question

i did get to look. awsome! how did you get to chill with those guys?

i have had the pleasure of spending time in NY and doing little more than checking out the jazz scene.

ive traveled a bit and i must say, the type of music you and i like is alive and well in NY. it amazing. here we get a few decent act passing through. there its every night. more music than you can manage.

email me and we can free this thread of side banter
Reply With Quote
  #18 (permalink)  
Old Aug 11th, 2006, 17:00
Junior Member
Join Date: Dec 2005
Location: Vilnius, Lithuania
Age: 36
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to mmdesign
Re: input type=submit - beginner's question

Sure, it's something to talk about!
Let me get all my form troubles solved... and i'll write you.
Reply With Quote
  #19 (permalink)  
Old Aug 11th, 2006, 17:19
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: input type=submit - beginner's question

Hi mmdesign,

What do you mean by 'you can't find a proper php handler'?

The only way you can send a file via email is as an attachment. Therefore you have to build a multipart email structure.

The code I pointed you to has everything you need. Just strip out what you don't want, incorporate it into your html page and jobs done or is the problem that you don't know which bits to take out and which bits to leave?
Reply With Quote
Reply

Tags
input, typesubmit, beginners, question

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Type Input in Conditional Statement affirmallchance Flash & Multimedia Forum 3 Jan 9th, 2008 11:30
question about a type of css menu camcool21 Web Page Design 3 Apr 9th, 2007 15:48
how do I change the height of an <input type="text"> box? MikeTheVike Web Page Design 1 Feb 23rd, 2007 22:23
Combo <input> and submit graphic masonbarge PHP Forum 0 Jan 20th, 2007 11:58
Cannot Submit Special Characters from Input Fields sboot ASP.NET Forum 1 Aug 30th, 2006 16:08


All times are GMT. The time now is 09:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43