HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
hi guys... can someone please look over this code... please
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
Misery_Kitty



Joined: 21 Apr 2008
Posts: 4

PostPosted: Mon Apr 21, 2008 9:55 pm     hi guys... can someone please look over this code... please Reply with quote

hi Very Happy

just wondering if someone can look over this code i have below... i think something is wrong lol Embarassed its not bouncing emails to me soooo i'm kinda lost Confused

i know you guys will be like "man this chick has it all wrong" Wink but be nice and help me out yeah?? Very Happy

thanks in advance
kel

CODE:
Code:
<br><br><FORM METHOD=POST ACTION="mailto:a*****@***.com" ENCTYPE="text/plain">
Name:
<br><TEXTAREA NAME="COMMENTS" ROWS=1 COLS=20>
</TEXTAREA>
<br>
Address:
<br><TEXTAREA NAME="COMMENTS" ROWS=5 COLS=20>
</TEXTAREA>
<br>
Upload image here.. For Best Results use an image as close to 1500x1500px as possible:
<br><FORM METHOD=POST ACTION="mailto:*****@***.com" ENCTYPE="multipart/form-data">
<INPUT TYPE="file" NAME="upload">
</FORM>
<br>
<INPUT TYPE="submit" VALUE="Send">
<INPUT TYPE="reset" VALUE="Clear">
<br>
</form>
<!-- ** END OF FORM ** -->
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Tue Apr 22, 2008 4:42 am     Reply with quote

You have a form inside a form. I removed the second form and it worked fine


<br><br><FORM METHOD=POST ACTION="mailto:a*****@***.com" ENCTYPE="text/plain">
Name:
<br><TEXTAREA NAME="COMMENTS" ROWS=1 COLS=20>
</TEXTAREA>
<br>
Address:
<br><TEXTAREA NAME="COMMENTS" ROWS=5 COLS=20>
</TEXTAREA>
<br>
Upload image here.. For Best Results use an image as close to 1500x1500px as possible:
<br> <FORM METHOD=POST ACTION="mailto:*****@***.com" ENCTYPE="multipart/form-data">
<INPUT TYPE="file" NAME="upload">
</FORM>
<br>
<INPUT TYPE="submit" VALUE="Send">
<INPUT TYPE="reset" VALUE="Clear">
<br>
</form>
<!-- ** END OF FORM ** -->
Misery_Kitty



Joined: 21 Apr 2008
Posts: 4

PostPosted: Tue Apr 22, 2008 3:49 pm     Reply with quote

thanks for the reply... Very Happy

but if i delete the red coding you highlighted i wont be able to allow people to upload an image.... hrm i'm guessing i cant do both? they have to be separate forms?

thanks again for the reply.. i really appreciate the help Smile
kel
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Wed Apr 23, 2008 4:15 am     Reply with quote

You guessed correctly. Using the MAILTO function in this type of form is not the best method and is very unreliable anyway. Many people don't have mail clients or browsers that support it. Perhaps you should be looking as some server side script that can handle the task
Misery_Kitty



Joined: 21 Apr 2008
Posts: 4

PostPosted: Wed Apr 23, 2008 12:15 pm     Reply with quote

the site i'm trying to put it on is on someone elses server so i dont have back end access hence the trying to put up a mailto type setup to get pictures sent to me for custom printing....

Embarassed

any light at the end of the tunnel on this project you think? Confused

thanks again for the reply Wink
mjpliv



Joined: 11 May 2004
Posts: 402
Location: Nova Scotia

PostPosted: Wed Apr 23, 2008 2:09 pm     Reply with quote

Check out this page for a good bit of quality information on using mailto.

http://www.network23.com/hub/mailto/default.html

I also tried this line in a simple mailto form -

Code:
<INPUT TYPE="FILE" NAME="attachment" SIZE="70">


Worked the first time but converted a text file to an ATT file. I tried attaching a jpg and it crashed my browser three tries in a row.

Good luck!
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial