December 11th, 2004, 06:59 PM
|
#1 (permalink)
| | Best To Avoid Me
Join Date: Mar 2002 Location: Under Your Bed
Posts: 8,596
|
Hey, it's me again!
Okay, I really need help with this one. My last lab involves creating a WORKING form...well, I seem to have gotten the form to look right...when I click submit, it launches the e-mail, but there's NO information from the form.
What am I missing? Our book is absolutely NO help! Code: <html>
<body>
<form action="MAILTO:mikeishome@cox.net" method="post" enctype="text/plain">
<h3>This form sends an e-mail to Mikey.</h3>
Name:<br>
<input type="text" name="name"
value="" size="20">
<br>
E-Mail Address:<br>
<input type="text" name="mail"
value="" size="20">
<br>
<br>
I am a man:
<input type="checkbox" name="Man">
<br>
I am a Woman
<input type="checkbox" name="Woman">
<br>
<br>
Comments:
<textarea rows="10" cols="30">
</textarea>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html> Thanks! |
| |
December 11th, 2004, 07:08 PM
|
#2 (permalink)
| | Member
Join Date: Oct 2004
Posts: 293
|
Im just started WebDesign in school, so im not this far, but my best advice is to find a real page like one of these on the internet, and chekc the source. It will probably give it away if u can sort throuhg all of the crap they will probably have |
| |
December 11th, 2004, 07:08 PM
|
#3 (permalink)
| | Member
Join Date: Oct 2004
Posts: 293
|
and remember, its always a good idea to pick up either macromedia dreamweaver or adobe golive if your getting into webdesign |
| |
December 11th, 2004, 07:21 PM
|
#4 (permalink)
| | Best To Avoid Me
Join Date: Mar 2002 Location: Under Your Bed
Posts: 8,596
|
I'm not getting into web design...this is a class requirement. I've updated the form, but it still doesn't send any information when it launches the new mail with my address. How do I get the user's information to actually be included in the e-mail? |
| |
December 11th, 2004, 08:45 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
It's been so long since I've done that in HTML (Lot easier just to use PHP now)
Can you use PHP?
Blaze |
| |
December 11th, 2004, 09:07 PM
|
#6 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
| Code: <html>
<title>Martick-Toch's Contact Page</title>
<body>
<h3>This form sends an e-mail to Mikey.</h3>
<!-- Form sends an e-mail to mikeishome@cox.net -->
<form method='post' enctype='text/plain' action='mikeishome@cox.net'>
Name:<br>
<!-- Name Input Field -->
<input type='text' name='name' value='' size='20'>
<br>
E-Mail Address:<br>
<!-- E-Mail Input Field -->
<input type='text' name='mail' value='' size='20'>
<br><br>
I am a man:
<!-- Man Checkbox Option -->
<input type='checkbox' name='Man'>
<br>
I am a Woman
<!-- Woman Checkbox Option -->
<input type='checkbox' name='Woman'>
<br><br>
Comments:
<!-- Comments text area (10*30) -->
<textarea rows='10' cols='30'></textarea>
<br>
<!-- Submit Button (sends Email using default email program) -->
<input type='submit' value='Send'>
<!-- Resets (clears) all form fields -->
<input type='reset' value='Reset'>
</form>
</body>
</html> That will work for ya.
(Put the method="post" before the "action="mailto:..."")
Blaze |
| |
December 12th, 2004, 01:16 AM
|
#7 (permalink)
| | Best To Avoid Me
Join Date: Mar 2002 Location: Under Your Bed
Posts: 8,596
|
Thanks Blaze!!!
EDIT: Still didn't work...you forgot the mailto:, but even after I put that in...it still just e-mails a blank page.  @ the page title |
| |
December 12th, 2004, 01:28 AM
|
#8 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,466
|
I don't think you can pass form data to a mailto:
You need a perl/cgi/php form handler. The mailto: just populates the address/subject.
__________________
My computer is bigger than yours!
|
| |
December 12th, 2004, 10:22 AM
|
#9 (permalink)
| | Ultimate Member
Join Date: Jul 2002 Location: sacramento
Posts: 1,165
| |
| |
December 12th, 2004, 06:33 PM
|
#10 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
THIS will work:
(took out the enctype tag) Code: <html>
<title>Martick-Toch's Contact Page</title>
<body>
<h3>This form sends an e-mail to Mikey.</h3>
<!-- Form sends an e-mail to mikeishome@cox.net -->
<form method='post' action='mailto:mikeishome@cox.net'>
Name:<br>
<!-- Name Input Field -->
<input type='text' name='name' value='' size='20'>
<br>
E-Mail Address:<br>
<!-- E-Mail Input Field -->
<input type='text' name='mail' value='' size='20'>
<br><br>
I am a man:
<!-- Man Checkbox Option -->
<input type='checkbox' name='Man'>
<br>
I am a Woman
<!-- Woman Checkbox Option -->
<input type='checkbox' name='Woman'>
<br><br>
Comments:
<!-- Comments text area (10*30) -->
<textarea rows='10' cols='30'></textarea>
<br>
<!-- Submit Button (sends Email using default email program) -->
<input type='submit' value='Send'>
<!-- Resets (clears) all form fields -->
<input type='reset' value='Reset'>
</form>
</body>
</html> Will send you an email with an attachment "POSTDATA.ATT" from IE. didnt check it in any other browser yet.
Blaze |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |