Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Submit help! I'm a complete moron! Please!


Submit help! I'm a complete moron! Please!

Reply
  #1 (permalink)  
Old 10-20-04, 11:13 AM
Methodmau Methodmau is offline
New Member
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Submit help! I'm a complete moron! Please!

Ok, so sorry for the desperate plea...but I've been operating a website for about a year now and I have not yet figured out a successful way to have users submit comments to an email address. Here's what I have for the form:

<table width="100%" border="0" cellspacing="0" cellpadding="0" height="350" align="center">
<td align="center"><table border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#666699"><form method="post" action="thankyou.php" >
<tr align="center">
<td>
<style type="text/css">
<!--
.button { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
.textarea { font-family: "MS Sans Serif"; font-size: 9pt; width: 280px}
.input { width: 280px}
-->
</style><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Send Your Comment</b></font></td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" width="290">
<tr>
<td width="149">
<form method="post" onsubmit="return false;" action="#">
<table border="0" cellspacing="0" cellpadding="2" bgcolor="" align="center">
<tr>
<td class="td1"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Name:</font><br>
<input type="text" name="name" maxlength="25" class="input" size="23">
</td>
</tr>
<tr>
<td class="td1"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">e-mail:</font><br>
<input type="text" name="email" size="23" maxlength="50" class="input">
</td>
</tr>
<tr>
<td class="td1"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Comment:</font><br>
<font face="MS Sans Serif" size="1">
<textarea name="message" cols="19" wrap="VIRTUAL" rows="6" class="textarea"></textarea>
</font>
</td>
</tr>
<tr valign="top">
<td>
<input type="submit" value="Submit" class="button" form action="mailto:nosmallwonder@hotmail.com">
<input type="reset" value="Reset" class="button">
<input type="hidden" name="action" value="add">
<input type="hidden" name="id" value="5">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

There are a few problems. First, I don't know jack about php, and the thankyou.php is just a silly attempt by me to get the form to do something.

I want the comments to be sent to nosmallwonder@hotmail.com. How can I have this happen?

I know this answer is extremely simple and I'm an html moron...but when you lean by trial and error, this is all the mojo I have to work with.

Thanks!
David Mau
Reply With Quote
  #2 (permalink)  
Old 10-20-04, 05:30 PM
El Barto El Barto is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Talking

To get it to send to an e-mail type

Code:
<form action="mailto:nosmallwonder@hotmail.com" method="post">
Stuff in form goes here
<input type="submit" value="Click here to submit" />
</form>
That will get it to submit to an e-mail usign the mailto command, but the thing is it will onyl work with people wh ohave an e-mail client set up on their computer, like Microsoft Outlook. The way to get it sent fro many one, with or without an e-mail client you need to have a form handler script, to get a free one I recormend http://cgi.resourceindex.com/ but your host may have their own one so ask them first.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to submit a form using a link, not a submit button? Myke311 HTML/XHTML/XML 3 01-12-05 01:26 AM
Submit button on forms civrob PHP 4 08-10-04 04:22 PM
submit button tcooper JavaScript 1 07-15-04 02:22 AM
submit form with more than one href submit and no submit button adlinfanus JavaScript 1 03-09-04 06:45 AM
3 submit buttons, I want one of them to be used when hitting enter. blasto333 HTML/XHTML/XML 2 02-21-04 03:24 PM


All times are GMT -5. The time now is 10:18 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.